# Create a fixup commit git commit --fixup # Conduct the fixup # After running this command, the fixup commit will automatically show # after the commit to fix. git rebase -i --autosquash # related config git config --global rebase.autosquash true