Good Blog, Karl


pushing an existing local repo to new github repo

I usually start my projects with a local git repo and then at some later date decide to put it up on 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

   git push -u origin master