Re: How to git checkout a orgin(unstage) version file in another directoy?
- From
Chunlin Zhang <zhangchunlin@gmail.com>
- Date
- Feb 17, 2011, 10:03 UTC
- Message-ID
- <loom.20110217T110216-810@post.gmane.org>
- In-Reply-To
- <4D5CDBAD.4050700@drmicha.warpmail.net>
Michael J Gruber <git <at> 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:
Yes,I mean HEAD version.
> > git --work-tree=. --git-dir="/media/linux/t/kernel/.git" checkout HEAD
It works! Thank you very much!