Tuesday, February 10, 2015

how to get a specific revision of a specific file from git

http://gitready.com/intermediate/2009/02/27/get-a-file-from-a-specific-revision.html

Example:

To get the version of index.html from before the last four commits, use

git show HEAD~4:index.html

No comments:

Post a Comment