RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
Wednesday, October 2, 2013
Git See Older Version of File
Here's a quick way to see the older version of a file in Git:
git show HEAD~4:pathto/file
Where "4" represents the number of versions to go back in HEAD.
See the following references for more details and variations:
http://stackoverflow.com/questions/338436/is-there-a-quick-git-command-to-see-an-old-version-of-a-file
http://stackoverflow.com/questions/610208/how-to-retrieve-a-single-file-from-specific-revision-in-git
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment