Quickly: create a new repo from an existing branch

I just created a new github repository to out of an existing branch. You could just copy the files, but I wanted to learn how to do it preserving history, when it didn't matter.

  1. Create the new repository: new-general
  2. Checkout the branch that is your source old-specific
  3. From the old-specific, push to the new repo.
$ git push git@github.com:myusername/new-general +master
  1. Now clone the new repo in fresh spot and get to work.
$ git clone git@github.com:myusername/new-general.git