From: Michael J Gruber <git@drmicha•warpmail.net>
To: Junio C Hamano <gitster@pobox•com>
Cc: Chunlin Zhang <zhangchunlin@gmail•com>, git@vger•kernel.org
Subject: Re: How to git checkout a orgin(unstage) version file in another directoy?
Date: Fri, 18 Feb 2011 08:41:50 +0100 [thread overview]
Message-ID: <4D5E22BE.301@drmicha.warpmail.net> (raw)
In-Reply-To: <7vpqqqcxzf.fsf@alter.siamese.dyndns.org>
Junio C Hamano venit, vidit, dixit 17.02.2011 19:33:
> Michael J Gruber <git@drmicha•warpmail.net> writes:
>
>> I'm not sure what you mean by "origin" version, but if you mean the
>> version from the current revision (before making and staging changes),
>> you would check out from HEAD instead of from the index:
>>
>> git --work-tree=. --git-dir="/media/linux/t/kernel/.git" checkout HEAD
>> -- README
>
> Wouldn't that still affect the index in /media/linux/t/kernel/.git/index,
> making /media/linux/t/kernel/README and the index entry out-of-sync?
Yes. I guess you overlooked the two posts where Chunlin and I realised
that I took his request for "checkout" too giterally.
Michael
next prev parent reply other threads:[~2011-02-18 7:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-17 7:00 How to git checkout a orgin(unstage) version file in another directoy? Chunlin Zhang
2011-02-17 8:26 ` Michael J Gruber
2011-02-17 10:03 ` Chunlin Zhang
2011-02-17 10:17 ` Chunlin Zhang
2011-02-17 12:35 ` Michael J Gruber
2011-02-17 13:30 ` Chunlin Zhang
2011-02-17 18:33 ` Junio C Hamano
2011-02-18 7:41 ` Michael J Gruber [this message]
2011-02-17 10:34 ` Jonathan Nieder
2011-02-17 12:06 ` Chunlin Zhang
2011-02-17 17:17 ` Andreas Schwab
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=4D5E22BE.301@drmicha.warpmail.net \
--to=git@drmicha$(echo .)warpmail.net \
--cc=git@vger$(echo .)kernel.org \
--cc=gitster@pobox$(echo .)com \
--cc=zhangchunlin@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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