Re: git checkout effect on ls-files --others, how to merge partially?
- From
- bisani <bisani>
- Date
- Feb 6, 2009, 16:37 UTC
- Message-ID
- <loom.20090206T163626-457@post.gmane.org>
- In-Reply-To
- <slrngooent.om3.sitaramc@sitaramc.homelinux.net>
Sitaram Chamarty <sitaramc <at> gmail.com> writes:
Show 10 quoted lines
>
> On 2009-02-06, Bisani, Alok <alok.bisani <at> credit-suisse.com> wrote:
>
> > Is there a way to pull in changes from a branch but only limited
> > to a file/files? I ended up doing a manual restore using git-cat-file
> ><branch>@{0}:/file. And checked in.
>
> git checkout branch -- filename
>
> This is exactly what I was looking for, thank you! I wonder why it is the checkout command which does this, rather than the pull/merge. What is the reason that we cannot pull/merge a specific file from a branch?