Re: Problem upgrading to 1.4.0
- From
Sean <seanlkml@sympatico.ca>
- Date
- Jun 13, 2006, 02:48 UTC
- Message-ID
- <BAYC1-PASMTP057F6CD43B793C898A6952AE8C0@CEZ.ICE>
- In-Reply-To
- <1150165982.4297.88.camel@dv>
On Mon, 12 Jun 2006 22:33:02 -0400 Pavel Roskin <proski@gnu.org> wrote:
Show 8 quoted lines
> And while at that, it would be great to download and keep the list of > the remote branches, perhaps when requested with a special switch. It > doesn't mean that all of the branches should be fetched, but it would be > nice to have a list of the available remove branches somewhere. > > As it stands now, this functionality is implemented in git-clone, which > it probably not the best place. Users should not be forced to clone the > directory again to find out which branches are available.
Hi Pavel,
You can get a list of the remote branches whenever you want:
$ git ls-remote -h <remote>
So, to see available branches in the repo from which you initially cloned:
$ git ls-remote -h origin
Or to see which branches are available in the official cogito repo, without ever cloning it:
$ git ls-remote -h git://git.kernel.org/pub/scm/cogito/cogito.git
HTH, Sean