From: "Dmitry A. Ashkadov" <dmitry.ashkadov@gmail.com>
To: git@vger.kernel.org
Subject: fetch for bare repository
Date: Fri, 13 Jan 2012 14:42:03 +0400 [thread overview]
Message-ID: <4F100A7B.3030001@gmail.com> (raw)
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!
next reply other threads:[~2012-01-13 10:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-13 10:42 Dmitry A. Ashkadov [this message]
2012-01-13 13:40 ` fetch for bare repository Carlos Martín Nieto
2012-01-13 13:54 ` Dmitry A. Ashkadov
2012-01-13 15:18 ` Carlos Martín Nieto
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=4F100A7B.3030001@gmail.com \
--to=dmitry.ashkadov@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 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.