Skip to content

Instantly share code, notes, and snippets.

@FSharpCSharp
Created April 7, 2020 07:46
Show Gist options
  • Select an option

  • Save FSharpCSharp/d9112aa07c05fb986d3881c1f9d14a1f to your computer and use it in GitHub Desktop.

Select an option

Save FSharpCSharp/d9112aa07c05fb986d3881c1f9d14a1f to your computer and use it in GitHub Desktop.
Create Git Repository from Branch
# Create the new-repo in github.
# cd to your local copy of the old repo you want to extract from, which is set up to track the new-project branch that will become the new-repo's master.
# new-project = source branch
# master = destination branch
git push https://github.com/accountname/new-repo.git +new-project:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment