Custom Search

Friday, December 13, 2013

Git How to revert Last Commit and Difference Between Soft and Hard Reset or Revert

#git log
#git reset --soft HEAD~1 # use --soft if you want to keep your local changes and revert last commit
#git reset --hard HEAD~1 # use --hard if you want to revert your changes and revert last commit
#git log


No comments:

Post a Comment