From: Pierre Habouzit <madcoder@debian.org>
To: "Edward Z. Yang" <edwardzyang@thewritingpot.com>
Cc: git@vger.kernel.org
Subject: Re: git reset --hard w/o touching every file
Date: Sat, 01 Nov 2008 12:05:29 +0100 [thread overview]
Message-ID: <20081101110529.GC3819@artemis.corp> (raw)
In-Reply-To: <gegn38$lku$1@ger.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 439 bytes --]
On Sat, Nov 01, 2008 at 04:48:38AM +0000, Edward Z. Yang wrote:
> I was wondering if there was any way to run `git reset --hard $revlike`,
> or a command with the same effect, without having Git touch every file?
git checkout HEAD -- <list of the files>
--
·O· Pierre Habouzit
··O madcoder@debian.org
OOO http://www.madism.org
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-11-01 11:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-01 4:48 git reset --hard w/o touching every file Edward Z. Yang
2008-11-01 11:05 ` Pierre Habouzit [this message]
2008-11-01 20:03 ` Edward Z. Yang
2008-11-02 3:33 ` Jeff King
2008-11-02 4:36 ` Edward Z. Yang
2008-11-02 5:52 ` Jeff King
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=20081101110529.GC3819@artemis.corp \
--to=madcoder@debian.org \
--cc=edwardzyang@thewritingpot.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