git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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/
Next: Björn Steinbrink
Message 1 of 2 in “Get a copy of an old version of a file, using git gui/gitk”
  1. Peter KreftingSep 19, 2008
  2. Björn SteinbrinkSep 19, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.