Skip to content

Instantly share code, notes, and snippets.

@capJavert
Created July 25, 2018 22:11
Show Gist options
  • Save capJavert/083bb4d38576e1c7f20ab017dbc63ab7 to your computer and use it in GitHub Desktop.
Save capJavert/083bb4d38576e1c7f20ab017dbc63ab7 to your computer and use it in GitHub Desktop.
Orphan branch with no history or files.
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