diff options
-rwxr-xr-x | unwip | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2,10 +2,11 @@ cmd=${0##*/} -if "$cmd" == "wip" +if [ "$cmd" == "wip" ] +then git add . && git commit -m WIP && git push --force +elif [ "$cmd" == "unwip" ] then -elif "$cmd" == "unwip" while [ $(git log --format="%s" HEAD~1..) == "WIP" ] do git reset --hard HEAD~1 @@ -14,4 +15,3 @@ elif "$cmd" == "unwip" else echo "unknown cmd '$cmd'" && exit 1 fi - |