Checkout a specific commit in GIT

Table of Contents

Many people may want to get a specific version of you working copy to lookup the detail information on it. So, how to?

The way is simple: “git checkout commit [ — filename or directory]

Then you will find you in a special branch named “no branch”, you can add/modify files, and create a new branch for continue working.

May help you :D