Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Create new GitHub Repo

# Navigate to root directory

# initialize
git init -b main

# stage and commit changes
git add . && git commit -m "initial commit"

# create new repository on GitHub using the GitHub CLI interface
gh repo create
# Follow prompts and instructions
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Create #GitHub #Repo
ADD COMMENT
Topic
Name
4+6 =