From: Jonathan Nieder <jrnieder@gmail.com>
To: jhapk <pradeep.kumar.jha@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Git branch
Date: Tue, 13 Jul 2010 18:04:18 -0500 [thread overview]
Message-ID: <20100713230418.GA1818@burratino> (raw)
In-Reply-To: <1279061452603-5290193.post@n2.nabble.com>
Hi,
jhapk wrote:
> I manually enter the following lines in
> the .git/config files of A1 and A2
> [branch "branchA"]
> remote = origin
> merge = refs/heads/branchA
>
> Then I create a branch in the bare repository B called branchA. Once this is
> done, all the push and pull works smoothly between the two repositories.
>
> Just wondering, is there a better way to do this? :)
Maybe something like the following would work.
>From A1:
git checkout -b branchA
... hack hack hack ...
git push --set-upstream origin branchA
ssh A2
>From A2:
git checkout -t origin/branchA
next prev parent reply other threads:[~2010-07-13 23:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-13 22:50 Git branch jhapk
2010-07-13 23:04 ` Jonathan Nieder [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-05-23 11:36 git branch Gergely Buday
2011-05-23 11:46 ` Marcus Karlsson
2011-05-23 12:17 ` Gergely Buday
2011-05-23 12:36 ` Tim Mazid
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=20100713230418.GA1818@burratino \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=pradeep.kumar.jha@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).