Skip to content

Instantly share code, notes, and snippets.

@crunchywelch
Created June 19, 2016 16:07
Show Gist options
  • Save crunchywelch/6e5b4c719d8d10779e31ad3ac8fc4e2f to your computer and use it in GitHub Desktop.
Save crunchywelch/6e5b4c719d8d10779e31ad3ac8fc4e2f to your computer and use it in GitHub Desktop.
git checkout --orphan latest_branch
git add -A
git commit -am "commit message"
git branch -D master
git branch -m master
git push -f origin master
source: http://stackoverflow.com/questions/13716658/how-to-delete-all-commit-history-in-github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment