Re: How to git checkout a orgin(unstage) version file in another directoy?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 17, 2011, 18:33 UTC
- Message-ID
- <7vpqqqcxzf.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4D5CDBAD.4050700@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 6 quoted lines
> 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?