nehamoopen / digital-garden

https://nehamoopen.github.io/digital-garden/
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

initialising git repo #37

Open nehamoopen opened 2 years ago

nehamoopen commented 2 years ago

…or create a new repository on the command line

echo "# <repo-name>" >> README.md  
git init  
git add README.md  
git commit -m "first commit"  
git branch -M main  
git remote add origin git@github.com:nehamoopen/<repo-name>.git  
git push -u origin main

…or push an existing repository from the command line

git remote add origin git@github.com:nehamoopen/<repo-name>.git  
git branch -M main  
git push -u origin main