Re: Can I checkout a single file without altering index?
- From
Tomas Carnecky <tom@dbservice.com>
- Date
- Oct 12, 2010, 16:39 UTC
- Message-ID
- <4CB48F56.3020404@dbservice.com>
- In-Reply-To
- <AANLkTinnYEnCwpTh45N69n73JQm=ndXH-SUJ5b1piUYv@mail.gmail.com>
On 10/12/10 5:39 PM, Alex Riesen wrote:
Show 7 quoted lines
> On Tue, Oct 12, 2010 at 12:03, Christian Halstrick > <christian.halstrick@gmail.com> wrote: >> Can I checkout a certain file to a specific revision without also adding this >> content to the index? I only want to alter the working-tree - no modification of >> index or HEAD needed. > > "git show <revision-specification>:path/name > path/name" ?
I heard that git-show doesn't apply filters to the file (smudge/clean or any custom ones). Keep that in mind when using it.
tom