From: Eric Miao <eric.y.miao@gmail.com>
To: zoucunliang <zclgibson@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: How to merge some specific project folder into an empty branch.
Date: Tue, 21 Jul 2009 14:48:57 +0800 [thread overview]
Message-ID: <4A6564D9.10901@gmail.com> (raw)
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.
prev parent reply other threads:[~2009-07-21 6:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-21 6:38 How to merge some specific project folder into an empty branch zoucunliang
2009-07-21 6:48 ` Eric Miao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A6564D9.10901@gmail.com \
--to=eric.y.miao@gmail.com \
--cc=git@vger.kernel.org \
--cc=zclgibson@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.