Clone only some branches

68 views
Skip to first unread message

Joachim Breitner

unread,
Jun 24, 2009, 5:53:10 PM6/24/09
to gito...@googlegroups.com
Hi,

I have a feature request: When cloning an upstream repository (e.g.
f-spot/mainline) to add a feature, I am not interested in any branch
that might exist in mainline besides master. I am a bit annoyed by
having a dozen branches in “my” clone that I don’t care about.

It would be nice if the clone dialog
(http://gitorious.org/f-spot/mainline/clone) gave me list of branches in
the repository where I can select the one(s) that I want to clone.

Thanks,
Joachim

--
Joachim "nomeata" Breitner
mail: ma...@joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C
JID: nom...@joachim-breitner.de | http://www.joachim-breitner.de/
Debian Developer: nom...@debian.org

signature.asc

prlawrence

unread,
Aug 5, 2009, 11:46:09 AM8/5/09
to Gitorious, ma...@joachim-breitner.de
On Jun 24, 4:53 pm, Joachim Breitner <m...@joachim-breitner.de> wrote:
> Hi,
>
> I have a feature request: When cloning an upstream repository (e.g.
> f-spot/mainline) to add a feature, I am not interested in any branch
> that might exist in mainline besides master. I am a bit annoyed by
> having a dozen branches in “my” clone that I don’t care about.
>
> It would be nice if the clone dialog
> (http://gitorious.org/f-spot/mainline/clone) gave me list of branches in
> the repository where I can select the one(s) that I want to clone.

If I understand your request, this is simply not the way Git works.
With Git you clone repositories, not branches.

However, after you clone a repository in Gitorious, and then clone
that repository down to your local workstation, you will find that
only master has been created as a local branch. Check out the
difference between `git branch` and `git branch -a`.

Phil Lawrence

Joachim Breitner

unread,
Aug 5, 2009, 12:15:28 PM8/5/09
to Gitorious
Hi,

that is right, but still the other branches are displayed on „my“ clone
of the upstream repository on gitorious. Maybe gitorious should also
reflect this behaviour of git: Only show local branches in the web
display of my personal clones.

Greetings,

signature.asc
Reply all
Reply to author
Forward
0 new messages