Skip to content

Instantly share code, notes, and snippets.

@allinallin
allinallin / git_fixup.sh
Last active January 11, 2018 22:50
Create a commit of staged changes and squash it with an existing commit in the stack
# $ git_fixup <SHA-1>
function git_fixup() {
git commit --fixup="${1}" && git rebase -i --autosquash "${1}"^
}

Keybase proof

I hereby claim:

  • I am allinallin on github.
  • I am allin (https://keybase.io/allin) on keybase.
  • I have a public key whose fingerprint is 10E3 21AB A67B AE27 4D55 AD0D 0A67 D34B 4FC3 AC65

To claim this, I am signing this object: