Skip to content

Instantly share code, notes, and snippets.

@asheliahut
Last active July 28, 2016 23:36
Show Gist options
  • Save asheliahut/ce225c543262959fdd0410abae16249e to your computer and use it in GitHub Desktop.
Save asheliahut/ce225c543262959fdd0410abae16249e to your computer and use it in GitHub Desktop.
Git shell oneline to squash all of master history
git checkout master; git log master --oneline | tail -1 | egrep -o '[0-9]+' | xargs git reset; git add ./; git commit -n -m "FUCK YOU I'M OUT"; git push -f -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment