To Create a new Repository in Github from the gitbash command line interface, follow the steps below,
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/saravanandorai/GitURL.git
git push -u origin master
To push existing code to a Repository in Github from the gitbash command line interface, follow the steps belowgit remote add origin https://github.com/saravanandorai/GitURL.git
git push -u origin master
Additional Reference:
See here
Comments
Post a Comment