From: Junio C Hamano <gitster@pobox.com>
To: "Bahadir Balban" <bahadir.balban@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Getting a file revision
Date: Sat, 18 Aug 2007 17:52:20 -0700 [thread overview]
Message-ID: <7vir7ccpmj.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <7ac1e90c0708181742w531dab4asc7c90835cc56e8a1@mail.gmail.com> (Bahadir Balban's message of "Sun, 19 Aug 2007 01:42:30 +0100")
"Bahadir Balban" <bahadir.balban@gmail.com> writes:
> This might sound like a novice question but anyway: I sometimes have a
> need to quickly recover an old revision of a file just to check
> something or copy some code from it.
$ git show -p $commit:$path >$path.old-version
next prev parent reply other threads:[~2007-08-19 0:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-19 0:42 Getting a file revision Bahadir Balban
2007-08-19 0:52 ` Junio C Hamano [this message]
2007-08-20 11:38 ` Jerome Lovy
2007-08-21 12:49 ` [PATCH] Document the -p option for git-show Miklos Vajna
2007-08-21 13:09 ` Johannes Sixt
2007-08-21 14:29 ` VMiklos
2007-08-21 15:02 ` David Kastrup
2007-08-21 17:01 ` Robin Rosenberg
2007-08-21 17:33 ` Junio C Hamano
2007-08-21 18:50 ` Robin Rosenberg
2007-08-19 0:52 ` Getting a file revision J. Bruce Fields
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=7vir7ccpmj.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=bahadir.balban@gmail.com \
--cc=git@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).