Skip to content

Instantly share code, notes, and snippets.

@jeremmfr
Created September 28, 2019 08:11
Show Gist options
  • Save jeremmfr/222f547b6c837d679d21cfd829d5b94c to your computer and use it in GitHub Desktop.
Save jeremmfr/222f547b6c837d679d21cfd829d5b94c to your computer and use it in GitHub Desktop.
git fixup
[alias]
fixup = "!f(){ git reset --soft HEAD~${1-1} && git commit --amend -C HEAD; };f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment