Il giorno ven, 03/08/2012 alle 01.17 +0200, Federico Bruni ha scritto: > git branch --track translation origin/translation > git checkout translation
FWIW git checkout origin/translation is a shorthand for the 2-commands sequence you gave. > On a side note, 'git clone' sees _all_ the remote branches. > I think that it would be nice to say also how to clean all the remote > branches that one will never use. You may say it's a nitpick, yes it is > :-) but 'git branch -a' is a bit messy. > > I know how to remove them one by one, for example: > git branch -d -r origin/stable/0.0 > > but obviously this is not the way to go. > > Wildcards unfortunately don't work: > > git branch -d -r origin/stable/* > error: remote branch 'origin/stable/*' not found. > > And this doesn't work neither: > git branch -a | grep dev | xargs git branch -d As Graham said, we don't want to support what you're asking for, which might be possible but at a cost of fiddling around that's not worth the trouble. We're not (yet) in the siuation of having hundreds of branches in our Git repo :-) Best, John _______________________________________________ bug-lilypond mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-lilypond
