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

2 messages from 2009-07-21 to 2009-07-21. Participants: zoucunliang, Eric Miao.
Thread: https://gitlist.dev/t/20171

## zoucunliang, 2009-07-21 06:38

Subject: How to merge some specific project folder into an empty branch.
Message-ID: <1248158311445-3293753.post@n2.nabble.com>
URL: https://gitlist.dev/e/1248158311445-3293753.post%40n2.nabble.com

```

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? 

Thanks a lot.
-- 
View this message in context: http://n2.nabble.com/How-to-merge-some-specific-project-folder-into-an-empty-branch.-tp3293753p3293753.html
Sent from the git mailing list archive at Nabble.com.

```

## Eric Miao, 2009-07-21 06:48

Subject: Re: How to merge some specific project folder into an empty branch.
Message-ID: <4A6564D9.10901@gmail.com>
URL: https://gitlist.dev/e/4A6564D9.10901%40gmail.com
In-Reply-To: <1248158311445-3293753.post@n2.nabble.com>

```
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.

```
