Undo Last Commit

git

Tue Jan 06 17:19:26 -0800 2009

My new favorite git command:

$ git reset --soft HEAD^

This pulls out your most recent commit, putting the changes back into your working tree. It’s exactly like an undo button for whatever you just committed.