From: bisani Date: Fri, 06 Feb 2009 16:37:38 GMT Subject: Re: git checkout effect on ls-files --others, how to merge partially? Message-ID: In-Reply-To: Sitaram Chamarty gmail.com> writes: > > On 2009-02-06, Bisani, Alok 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 > >@{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?