Skip to content

Instantly share code, notes, and snippets.

@FFY00
Created August 4, 2018 14:32
Show Gist options
  • Save FFY00/f7e395898ac0c6c5a69030209d1e94fe to your computer and use it in GitHub Desktop.
Save FFY00/f7e395898ac0c6c5a69030209d1e94fe to your computer and use it in GitHub Desktop.
Fixup git commit (typo)
git add ... # Stage a fix
git commit --fixup=a0b1c2d3 # Perform the commit to fix broken a0b1c2d3
git rebase -i --autosquash a0b1c2d3~1 # Now merge fixup commit into broken commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment