I usually start my projects with a local git repo and then at some later date decide to put it up on github.com. That’s usually a no-brainer if I’m the one who creates the remote repo; GitHub provides clear instructions on the very next page. But if the project is for work and someone else has already created an empty remote repo, I don’t get to see those instructions. So, here’s what I need to do:

 cd ~/Sites/local-repo-dir

 git remote add origin [email protected]:fusionary/remote-repo-name.git

 git push -u origin master