Created
April 7, 2020 07:46
-
-
Save FSharpCSharp/d9112aa07c05fb986d3881c1f9d14a1f to your computer and use it in GitHub Desktop.
Create Git Repository from Branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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