From: sean <seanlkml@sympatico.ca>
To: "Sébastien Pierre" <sebastien@xprima.com>
Cc: git@vger.kernel.org
Subject: Re: Cherry-pick particular object
Date: Tue, 28 Mar 2006 16:34:22 -0500 [thread overview]
Message-ID: <BAYC1-PASMTP02B05019F52DE48793CB39AED30@CEZ.ICE> (raw)
Message-ID: <20060328163422.0981a743.seanlkml@sympatico.ca> (raw)
In-Reply-To: <20060328113107.20ab4c21.sebastien@xprima.com>
On Tue, 28 Mar 2006 11:31:07 -0500
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 ?
If you used:
$ git cat-file -t 78132af2643
It would tell you that this object is of type "blob".
To see the contents of blobs you can do something like:
$ git cat-file blob 78132af2643
Sean
next prev 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 [this message]
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
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=BAYC1-PASMTP02B05019F52DE48793CB39AED30@CEZ.ICE \
--to=seanlkml@sympatico.ca \
--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