Rich Dougherty rd.nz

Moving an existing repo to Github

Assuming you already have code in a local repository…

  1. Got to https://github.com/new and create a new repository. Remember to create it without a .gitignore or README file so as to avoid needing a merge.

  2. In your local repo run a command like:

    git remote add origin git@github.com:richdougherty/kitteh-feeder.git
    
  3. Then run:

    git push -u origin master
    

Via Stack Overflow.