git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fetch for bare repository
@ 2012-01-13 10:42 Dmitry A. Ashkadov
  2012-01-13 13:40 ` Carlos Martín Nieto
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry A. Ashkadov @ 2012-01-13 10:42 UTC (permalink / raw)
  To: git

Hello!

I can't understand how to fetch branches from external repository for 
bare repository.

For example, imagine 2 git repositories: "B" and "C". "B" repository is 
external repository and it contains branch "branch1". "C" is an internal 
repository (special repository for some people). "C" repository may be 
created with command:
> $ git clone --bare B .
For "C" repository working set isn't required, so it may be bare, I 
think. This new "C" repository contains branch "branch1".
Imagine that somebody has created a new branch "branch2" in the 
repository "B". I don't know what I should do with repository "C" to 
make the branch "branch2" available on repository "C". Command:
> $ git fetch origin 
doesn't work. Next command for repository "C":
> $ git branch -a 
always shows only branch "branch1"  but never branch "branch2".

Could you help me, please?

Thank you!

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

end of thread, other threads:[~2012-01-13 15:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-13 10:42 fetch for bare repository Dmitry A. Ashkadov
2012-01-13 13:40 ` Carlos Martín Nieto
2012-01-13 13:54   ` Dmitry A. Ashkadov
2012-01-13 15:18     ` Carlos Martín Nieto

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