This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Official GCC git repository
"Daniel Berlin" <dberlin@dberlin.org> writes:
> No, nothing is wrong wit he import, if you want all the remote
> branches, you have to ask git to get all the remote branches
>
> git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*'
This will put the remote branch heads in refs/remotes, you might want to
put them in refs/remotes/origin instead.
$ git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/origin/*'
> Then fetch again.
> then, if you want to really see all the branches, including the remote
> ones, use git branch -a -l, not -r -l.
git branch -r should already show all remote branches (ie. every ref
under refs/remotes), git branch -a shows you all local branches in
addition. (And -l has no meaning unless you create a branch.)
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."