git temporary Rollback to a commit

When working on large projects sometimes everyone needs to go back to previous stable release or commits and look into the codes.

It can be done by simple one line command if you use git.

git checkout a9ff0dd

Here a9ff0dd is unique <hash> value. You can get your preferred commit's <hash> value from github or bitbucket easily.


I hope this can come in handy in critical situations :) .

comments powered by Disqus