After using git to locally track a project, how can I add it to GitHub?

GitHub gives you instructions after you’ve created the repository online.

cd to the directory with the local repository

git remote add origin whatever-address-my-repository is.git to set the remote

then make a commit, and push to the master branch.

git push -u origin master

https://help.github.com/articles/create-a-repo

Leave a Comment