Created
March 4, 2015 21:57
-
-
Save scottnath/be44614cc38f5dec4948 to your computer and use it in GitHub Desktop.
new clean git branch with --orphan
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 . | |
| rm -rf all-the-remaining-stuff-except-.git-directory | |
| ## should be a clean branch now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment