Re: How make "git checkout <commit> <file>" *not* alter index?
- From
- Jike Song <albcamus@gmail.com>
- Date
- Jan 6, 2009, 06:17 UTC
- Message-ID
- <df9815e70901052217m3bdb29e4y8f28a1300169c1ea@mail.gmail.com>
- In-Reply-To
- <20090106051852.GA3278@seberino.org>
On Tue, Jan 6, 2009 at 1:18 PM, <chris@seberino.org> wrote:
Show 10 quoted lines
> I want to pull an old version of a file into my local directory and make it > appear like work I haven't added to index yet... > > > So how modify > > > git checkout <commit> <file> > > to do this?
I have a stupid way to do this:
$ git show v2.6.12:Makefile > Makefile $ git diff --cached /* no outputs */
Ugly but seems work.
-- Thanks, Jike