Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

creating a github repository from the cli

echo "# introduction-to-github" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:githubusername/introduction-to-github.git
git push -u origin main
Source by github.com #
 
PREVIOUS NEXT
Tagged: #creating #github #repository #cli
ADD COMMENT
Topic
Name
8+3 =