Get a copy of an old version of a file, using git gui/gitk
- From
Peter Krefting <peter@softwolves.pp.se>
- Date
- Sep 19, 2008, 07:58 UTC
- Message-ID
- <Pine.LNX.4.64.0809190855060.17960@ds9.cixit.se>
Hi!
I am trying to introduce new people to Git, and am primarily showing how to use the GUI tools (git gui/gitk), since the project is running on Windows. A question that I couldn't answer arose:
How do I save a copy of an older version of a file (one that has either been modified locally, or an earlier version in the project history), from git gui or gitk?
>From the command line, I would try to find the SHA-1 and use git
cat-file, but I can't figure out how to do it from the GUIs. Or, to fall back to the command-line, how to get the SHA-1 for the object out of git gui/gitk.
-- \\// Peter - http://www.softwolves.pp.se/