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

Re: Jabber, question on push,pull and --tags, and no help but jabber

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 6, 2011, 17:58 UTC
Message-ID
<7v1uz6alkv.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110606153405.GA15894@victor.terreactive.ch>
Victor Engmark <victor.engmark@terreactive.ch> writes:
Show 7 quoted lines
>> More seriously, tags are not part of the "remotes layout", so when you
>> push them and others pull them they overwrite their tags if there's a
>> name clash.
>
> That's odd - I wouldn't expect anything handled by Git to be simply
> overwritten without merging. Is there some technical reason for this, or
> is it just not implemented yet?

Branches are something you work on by looking at other people's progress, so remote layout to copy his master branch to refs/remotes/his/master so that you can compare it with yours with "git diff his/master master" or merge his effort into yours with "git merge his/master" makes sense.

Tags are something that is to be _shared_ amongst people, and having v1.4.3 that is different depending on which member of the same project you ask is a road to insanity, hence we don't do refs/remotes/his/v1.4.3 that could be different from the project's global refs/tags/v1.4.3 to reduce the risk of confusion.

Previous: Victor Engmark
Message 14 of 14 in “Jabber, question on push,pull and --tags, and no help but jabber”
  1. Steffen Daode NurpmesoJun 6, 2011
  2. Michael J GruberJun 6, 2011
  3. Felipe ContrerasJun 6, 2011
  4. Steffen Daode NurpmesoJun 6, 2011
  5. Michael J GruberJun 7, 2011
  6. Steffen Daode NurpmesoJun 7, 2011
  7. Notes that tags need to pushed explicitelySteffen Daode Nurpmeso, Jun 7, 2011
  8. Junio C HamanoJun 7, 2011
  9. Remarks that tags need to be pushed explicitlySteffen Daode Nurpmeso, Jun 7, 2011
  10. Remarks that tags need to be pushed explicitlySteffen Daode Nurpmeso, Jun 10, 2011
  11. Junio C HamanoJun 10, 2011
  12. Steffen Daode NurpmesoJun 11, 2011
  13. Victor EngmarkJun 6, 2011
  14. Junio C HamanoJun 6, 2011

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.