3 ms·
I have a similar function that's a bit simpler: gfixup () { REVISION=$(git rev-parse $1) git commit --fixup=$REVISION && git rebase -i --a
by piinbinary 11y ago
I have a similar function that's a bit simpler:
gfixup () {
REVISION=$(git rev-parse $1)
git commit --fixup=$REVISION && git rebase -i --autosquash $REVISION~
}
It doesn't handle stashing anything, but other than that it's basically the same.
- michaelmior 11y agoWouldn't the stash be easily handled with --autostash?