Created
July 17, 2015 06:11
-
-
Save benzimmer/7968599ec15fd20b6aee to your computer and use it in GitHub Desktop.
Create git orphan 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
git checkout --orphan newbranch | |
git rm -rf . | |
<do work> | |
git add your files | |
git commit -m 'Initial commit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment