git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git branch
@ 2010-07-13 22:50 jhapk
  2010-07-13 23:04 ` Jonathan Nieder
  0 siblings, 1 reply; 6+ messages in thread
From: jhapk @ 2010-07-13 22:50 UTC (permalink / raw)
  To: git


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.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* git branch
@ 2011-05-23 11:36 Gergely Buday
  2011-05-23 11:46 ` Marcus Karlsson
  0 siblings, 1 reply; 6+ messages in thread
From: Gergely Buday @ 2011-05-23 11:36 UTC (permalink / raw)
  To: git

Hi there,

I created

git branch install_2.0

for my install script. Then pushed to

git push origin install_2.0

so that github stores by branch

after another commit I tried to push again but git told me that I'm
not on that branch. Why git loses the state that I'm on a branch? What
should I do to have my expected behaviour?

- Gergely

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-23 12:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-13 22:50 Git branch jhapk
2010-07-13 23:04 ` 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

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