To create a new commit that βrolls backβ changes to a previous commit, use:
$ git revert <commit>
You can also actually remove a commit from an arbitrary point in the past by rebooting and then resetting, but you really don't want to do this if you have already pushed your commits to another repository (or someone else clicked from you).
Ben James Nov 27 '09 at 16:09 2009-11-27 16:09
source share