Git WIP Commit

Git has a nice stash command, but often I find it simpler to just commit the current changes on the branch I working on.
Later come back to the branch and undo the "WIP" commit (assuming I did not push it to more people).

git commit -a -m "WIP"

Later when coming back to the branch:

git reset --soft HEAD^

Now I can keep working on it and then:

git commit -c HEAD@{1}

The -c will bring the old log message.

Tags


comments powered by Disqus