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

Leave a Comment