If the last commit message already was “WIP”, amend this commit instead: #!/usr/bin/env bash git add -A if [ "$(git log -1 --pretty=%B)" = "WIP" ]; then git commit --amend --no-edit else git commit -m "WIP" fi And its friend, git-unwip that undo the ...
↧