Tuesday, June 10, 2014

Git Checkout to a Specific Commit

In Git, to get your workspace code to that of a specific commit:

git checkout 0fe3207

To go back to HEAD e.g. in the "master" branch:

git checkout master

References: