Skip to content

Instantly share code, notes, and snippets.

@ruaanvds
Created January 15, 2019 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruaanvds/0605414eafe3c3a67a7f810935a39f99 to your computer and use it in GitHub Desktop.
Save ruaanvds/0605414eafe3c3a67a7f810935a39f99 to your computer and use it in GitHub Desktop.
Emergency commit squash
git reset $(git merge-base master $(git rev-parse --abbrev-ref HEAD))
git add -A
git commit -m "Commit message"
git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment