Git development
 help / color / mirror / Atom feed
From: Shawn Pearce <spearce@spearce.org>
To: "Sébastien Pierre" <sebastien@xprima.com>
Cc: git@vger.kernel.org
Subject: Re: Cherry-pick particular object
Date: Tue, 28 Mar 2006 16:37:44 -0500	[thread overview]
Message-ID: <20060328213744.GD14457@spearce.org> (raw)
In-Reply-To: <20060328113107.20ab4c21.sebastien@xprima.com>

S?bastien Pierre <sebastien@xprima.com> wrote:
> 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.

  parent reply	other threads:[~2006-03-28 21:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-28 16:31 Cherry-pick particular object Sébastien Pierre
     [not found] ` <20060328163422.0981a743.seanlkml@sympatico.ca>
2006-03-28 21:34   ` sean
2006-03-28 17:23     ` Sébastien Pierre
2006-03-28 22:44     ` Linus Torvalds
2006-03-28 22:54       ` Petr Baudis
2006-03-28 23:24         ` Linus Torvalds
2006-03-28 23:28           ` Petr Baudis
2006-03-28 21:37 ` Shawn Pearce [this message]
2006-03-28 21:38 ` Tony Luck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060328213744.GD14457@spearce.org \
    --to=spearce@spearce.org \
    --cc=git@vger.kernel.org \
    --cc=sebastien@xprima.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox