Re: git checkout effect on ls-files --others, how to merge partially?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sitaram Chamarty <sitaramc <at> gmail.com> writes:

> 
> 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?

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux