Created
July 25, 2018 22:11
-
-
Save capJavert/083bb4d38576e1c7f20ab017dbc63ab7 to your computer and use it in GitHub Desktop.
Orphan branch with no history or files.
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 <branch-name> | |
git reset | |
rm -rf * | |
# now you have no history and no files, like a true orphan ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment