Monday, January 30, 2012

Git, How to revert to a previous commit?

Best on this is:http://stackoverflow.com/questions/4114095/git-revert-to-previous-commit-how

I like this way:

git checkout 0d1d7fc32 .
git commit
Also you can do the following if you have some local modifications:
git stash
git checkout 0d1d7fc32
git stash pop
git commit


No comments: