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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…