This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: onwards to git
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: "Carlos O'Donell" <carlos at systemhalted dot org>
- Cc: Roland McGrath <roland at redhat dot com>, Jim Meyering <jim at meyering dot net>, "Joseph S. Myers" <joseph at codesourcery dot com>, libc-ports at sourceware dot org
- Date: Fri, 01 May 2009 18:54:41 +0200
- Subject: Re: onwards to git
- References: <49F89C2D.5060702@redhat.com> <Pine.LNX.4.64.0904292008041.31467@digraph.polyomino.org.uk> <20090429203933.08694FC3BF@magilla.sf.frob.com> <87hc07dt5x.fsf@meyering.net> <20090430195521.B8C59FC3BF@magilla.sf.frob.com> <119aab440905010655o78fd98f2oc819a266f97e5c0d@mail.gmail.com>
"Carlos O'Donell" <carlos@systemhalted.org> writes:
> Q: How do I checkout the glibc-2_9-branch from git?
>
> A: Checkout the sources from the glibc-2_9 tag into a local branch
> named glibc-2_9-branch
> git checkout -b glibc-2_9-branch glibc-2_9
You probably want to use origin/glibc-2_9-branch instead of the tag.
With a recent version of git (since 1.6.1) you can use this:
$ git checkout --track origin/glibc-2_9-branch
This is equivalent to the following:
$ git checkout --track -b glibc-2_9-branch origin/glibc-2_9-branch
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."