Created
December 22, 2020 16:22
-
-
Save thomasdashney/befedf78b94c373ff138d78473d01e5a to your computer and use it in GitHub Desktop.
Git fixup
This file contains 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
#!/bin/bash | |
git commit -a --fixup $1 | |
git rebase --autosquash --interactive $(git show $1^1 --pretty=format:"%h" --no-patch) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installation: