threads / discuss / 10494

tags disappear

Subject: tags disappear

## tl;dr

2 messages between Oct 28, 2007 and Oct 28, 2007.

replies: 1people: 2as markdown or json

James· Oct 28, 2007, 04:01 UTC · lore
Hi all,

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?

Thanks! .james

Shawn O. Pearce· Oct 28, 2007, 05:05 UTC · re: James · lore

Re: tags disappear

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.

← back to recent threads