Last active
January 7, 2020 09:41
-
-
Save jdmichaud/f4576d9c9886d239e4319db587c028d1 to your computer and use it in GitHub Desktop.
Amend old commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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