Re: Can I checkout a single file without altering index?
- From
Jeff King <peff@peff.net>
- Date
- Oct 15, 2010, 18:55 UTC
- Message-ID
- <20101015185539.GA30380@sigill.intra.peff.net>
- In-Reply-To
- <20101015184302.GA22990@burratino>
On Fri, Oct 15, 2010 at 01:43:02PM -0500, Jonathan Nieder wrote:
Show 7 quoted lines
> Neal Kreitzinger wrote: > > > However, there is an option in git-commit to copy files directly from the > > working-tree to the object-store by totally bypassing the index > > What option is this? I thought "git commit --include" added content > to the index.
git commit -o|--only, which is the same as "git commit <paths>". Of course it still uses an index, to create the tree, but it uses a temporary one based on HEAD instead of the current index contents.
-Peff