Thursday, October 18, 2012

how to revert commit in git

If we want to rollback to our previous commit, then we just use the below command:
git revert head


See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide

1 comment:

Anonymous said...

you can also use:

git reset --hard HEAD~1