Re: syntax for checking out specific tag on a remote
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 12, 2007, 01:41 UTC
- Message-ID
- <7v1we9leb9.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <9e4733910708111833r6588557al1876bd6aaae38204@mail.gmail.com>
"Jon Smirl" <jonsmirl@gmail.com> writes:
> What's the syntax for checking out a specific tag on a remote?
This depends on where you stored the tags you obtained from the remote. By default, "git fetch --tags" would store the tags in a flat namespace; there is no "remote tag" namespace.
Hence you would say:
git checkout v2.6.19
to get a detached HEAD at v2.6.19, or if you want to start a branch from there,
git checkout -b my19 v2.6.19