git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: syntax for checking out specific tag on a remote

From
Jon Smirl <jonsmirl@gmail.com>
Date
Aug 12, 2007, 01:50 UTC
Message-ID
<9e4733910708111850v6e9669c3i536fba49f63d0f10@mail.gmail.com>
In-Reply-To
<7v1we9leb9.fsf@assigned-by-dhcp.cox.net>
On 8/11/07, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> "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.

I've been storing unrelated trees in the same git db. It never occurred to me that there was a single tag name space. So if two of my remotes both make a tag TEST then last one fetched will win? Are "remote tag" namespaces planned for the future?

Show 11 quoted lines
>
> 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
>
>
-- 
Jon Smirl
jonsmirl@gmail.com
Previous: Junio C HamanoNext: Jon Smirl
Message 3 of 5 in “syntax for checking out specific tag on a remote”
  1. Jon SmirlAug 12, 2007
  2. Junio C HamanoAug 12, 2007
  3. Jon SmirlAug 12, 2007
  4. Jon SmirlAug 12, 2007
  5. Junio C HamanoAug 12, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.