git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jhapk <pradeep.kumar.jha@gmail.com>
To: git@vger.kernel.org
Subject: Git branch
Date: Tue, 13 Jul 2010 15:50:52 -0700 (PDT)	[thread overview]
Message-ID: <1279061452603-5290193.post@n2.nabble.com> (raw)


Hi,

I have a central bare repository B and two non-bare repositories A1 and A2.
Both A1 and A2 have B as the origin. The way I do it is that every time I
create a branch in A1, say branchA, 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? :)
-- 
View this message in context: http://git.661346.n2.nabble.com/Git-branch-tp5290193p5290193.html
Sent from the git mailing list archive at Nabble.com.

             reply	other threads:[~2010-07-13 22:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-13 22:50 jhapk [this message]
2010-07-13 23:04 ` Git branch Jonathan Nieder
  -- 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=1279061452603-5290193.post@n2.nabble.com \
    --to=pradeep.kumar.jha@gmail.com \
    --cc=git@vger.kernel.org \
    /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).