-
@gkalpakas I don't remember what problem I ran into at the time. Actually trying again now, I think this works as I was hoping. [alias] uncommit = "!MSG=$(git --no-pager log --format=%B -n 1 HEAD) && git reset HEAD~1 && git commit \ --allow-empty -m \"${MSG}\" > /dev/null"
-
@gkalpakas I just realized I didn't format that command onto one line which introduced an unexpected backslash. Should be: uncommit = "!MSG=$(git --no-pager log --format=%B -n 1 HEAD) && git reset HEAD~1 && git commit --allow-empty -m \"${MSG}\" > /dev/null"