Skip to content

Instantly share code, notes, and snippets.

@switowski
Created January 21, 2019 17:02
Show Gist options
  • Save switowski/a0c8af0d0fa8f23aa6be3174f53728b3 to your computer and use it in GitHub Desktop.
Save switowski/a0c8af0d0fa8f23aa6be3174f53728b3 to your computer and use it in GitHub Desktop.
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment