DaffyDuke
1/16/2017 - 3:02 PM

git fixup

# Modify any commit of your history in one command (shorthand)
# Put this in your .gitconfig
[alias]
  fixup = !sh -c 'SHA=$(git rev-parse $1) \
       && git commit --fixup $SHA \
       && git rebase -i --autosquash $SHA~' -
# Usage: git fixup {sha1}