Wednesday, 10 September 2014

Git: Getting the contents of a file as of a particular SHA


http://stackoverflow.com/questions/7685433/how-to-get-files-and-content-by-sha-of-commit

git show f414f31:Documentation/help.txt

.. where the path Documentation/help.txt is relative to the top level of the working tree, regardless of whether you're in a subdirectory or not. 

No comments:

Post a Comment