Re: How to merge some specific project folder into an empty branch.

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

 



zoucunliang wrote:
> Hi all,
> 
> Currently i want to merge one project into another git branch. For example I
> have a branch name A and there is a project called p1 under folder
> projects/p1/. and i have a empty branch B. i just want to merge project
> "projects/p1/" into my empty branch B. But I don't want to merge other
> parts(for example projects/p2). Can anyone help me please? 
> 

OK,

I'm not sure if I understand your question clearly, but let's see if
the below will work for you:

# git remote add p1 ".../projects/p1"
# git fetch p1

And assume the branch you wanna merge in P1 is C

# git checkout B
# git merge p1/C

Yet I see no benefit of doing so with project p1 and p2 to be very different.


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