Skip to content

Instantly share code, notes, and snippets.

@jdmichaud
Last active January 7, 2020 09:41
Show Gist options
  • Save jdmichaud/f4576d9c9886d239e4319db587c028d1 to your computer and use it in GitHub Desktop.
Save jdmichaud/f4576d9c9886d239e4319db587c028d1 to your computer and use it in GitHub Desktop.
Amend old commit
# https://stackoverflow.com/questions/2719579/how-to-add-a-changed-file-to-an-older-not-last-commit-in-git
git add <my fixed files>
git commit --fixup=OLDCOMMIT
git rebase --interactive --autosquash OLDCOMMIT^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment