Git basic and general commands
…or create a new repository on the command line
echo "# shristiSpringBasic" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/rehan02/shristiSpringBasic.git
git push -u origin main
…or push an existing repository from the command line
git remote add origin https://github.com/rehan02/shristiSpringBasic.git
git branch -M main
git push -u origin main
( we will see this when we create new repository in github , i pasted here for future reference)
Comments
Post a Comment