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

Re: Cherry-pick particular object

From
Shawn Pearce <spearce@spearce.org>
Date
Mar 28, 2006, 21:37 UTC
Message-ID
<20060328213744.GD14457@spearce.org>
In-Reply-To
<20060328113107.20ab4c21.sebastien@xprima.com>
S?bastien Pierre <sebastien@xprima.com> wrote:
Show 16 quoted lines
> Hi all,
> 
> This is a newbie question.
> 
> I recently wanted to "cherry" pick a particular file from my
> git-managed project history. Using gitk, I identified which was
> the revision I wanted (95ba0c74e03874e8c1721b91f92f161e9061621f),
> and then using git ls-tree, I managed to get the id of the file I
> wanted (78132af26431e649a0f85f22dc27e5787d80700f).
> 
> Now, what I simply wanted was to do something like:
> 
> "get the file corresponding to
> 78132af26431e649a0f85f22dc27e5787d80700f and save it as myfile.txt"
> 
> How would one properly do that with core git ?
git cat-file blob 78132af26431e649a0f85f22dc27e5787d80700f >myfile.txt
-- 
Shawn.
Previous: Petr BaudisNext: Tony Luck
Message 8 of 9 in “Cherry-pick particular object”
  1. Sébastien PierreMar 28, 2006
  2. seanMar 28, 2006
  3. Sébastien PierreMar 28, 2006
  4. Linus TorvaldsMar 28, 2006
  5. Petr BaudisMar 28, 2006
  6. Linus TorvaldsMar 28, 2006
  7. Petr BaudisMar 28, 2006
  8. Shawn PearceMar 28, 2006
  9. Tony LuckMar 28, 2006

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.