From: Jeff King <peff@peff.net>
To: Roald de Vries <rdv@roalddevries.nl>
Cc: git@vger.kernel.org
Subject: Re: clone
Date: Mon, 20 Jul 2009 11:24:07 -0400 [thread overview]
Message-ID: <20090720152407.GC5347@coredump.intra.peff.net> (raw)
In-Reply-To: <D229D90E-0294-475D-B7AC-6C7B23CC169A@roalddevries.nl>
On Mon, Jul 20, 2009 at 04:33:51PM +0200, Roald de Vries wrote:
> If I clone a repository with multiple branches to 'newdir', and then
> type 'git branch' in 'newdir', I see only 1 branch. 'git branch -r'
> gives me all branches. Is that correct behaviour? If so, why? And
> mainly: can I configure git to clone all original branches to non-
> remote branches?
Yes, it's correct. You really only need local branches of things you are
going to work on. And then that happens, you generally would just "git
checkout -b foo origin/foo" to make your own local "foo" branch that you
will be working on (or if you are using topic branches, something more
like "git checkout -b mytopic origin/master"). If you are just
inspecting branches (e.g., checking them out to try building, doing
diffs against them, using them as reference points for logging, etc),
then the remote versions are fine.
-Peff
next prev parent reply other threads:[~2009-07-20 15:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-20 14:33 clone Roald de Vries
2009-07-20 15:24 ` Jeff King [this message]
2009-07-21 8:05 ` clone Michael J Gruber
2009-07-21 9:56 ` clone Roald de Vries
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=20090720152407.GC5347@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=rdv@roalddevries.nl \
/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).