Hacker News new | ask | show | jobs
by piinbinary 4031 days 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.
1 comments

Wouldn't the stash be easily handled with --autostash?