From: Michael S. Tsirkin Date: Mon, 05 Feb 2007 18:55:41 GMT Subject: Re: [PATCH] add --remote option to git-clone. Message-ID: <20070205185541.GA16598@mellanox.co.il> In-Reply-To: > (In general, even if I clone _everything_, I'd also like to perhaps set > the default 'master' branch to track something else than what I'm cloning > from. In fact, I think I'd generally prefer cloning everything, but > sometimes I'd like to say "I'm going to track the upstreams branch xyzzy > rather than their default branch"). > > I realize that the > > git clone [] > > means that we can't have the same syntax as "git pull" (which doesn't take > the part), but that doesn't make the "#branch" syntax any better. > > So I much prefer the > > git clone [--default branch] [--branch x]* [ > > kind of syntax. Two questions: - I understand --branch is too large for 1.5.0, but maybe this --default isn't? - Or, maybe we can have a flag to avoid creating the master branch at all? User can combine this with -n, then check which branches exist with "git branch -r" and create the branch himself. -- MST