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

Re: tags disappear

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 28, 2007, 05:05 UTC
Message-ID
<20071028050546.GR14735@spearce.org>
In-Reply-To
<C7372F7E-F29E-4E40-AE96-7AC8CB0EE0CE@nc.rr.com>
James <jtp@nc.rr.com> wrote:
Show 9 quoted lines
> Sorry for the dumb question.  Hoping someone can lead me in the right  
> direction.
> 
> I use git in a pretty basic setup.  One branch, I'm the only user,  
> etc.  When I set up a tag (with a command like "git tag v1.1.6"), and  
> then push the changes to the server, the tag doesn't remain when I  
> clone the tree somewhere else.
> 
> Can anyone explain why, and possibly how to keep tags on a push/clone?
You need to push the tag to the server with:
  git push server tag v1.1.6

But you should make such takes annotated with "git tag -a" so they are proper objects in their own right, rather than just refs pointing at commits.

-- 
Shawn.
Previous: James
Message 2 of 2 in “tags disappear”
  1. JamesOct 28, 2007
  2. Shawn O. PearceOct 28, 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.