Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to create a new repository on the command line.

echo "# REPOSITORY NAME" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin <https github file>
git push -u origin main
Source by github.com #
 
PREVIOUS NEXT
Tagged: #How #create #repository #command
ADD COMMENT
Topic
Name
2+9 =