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

Re: git tag's history

From
David Aguilar <davvid@gmail.com>
Date
Jul 26, 2010, 09:36 UTC
Message-ID
<AANLkTikTqJVbohquiNmW0BvP0bXsVFyMw0H4qF2FbhiH@mail.gmail.com>
In-Reply-To
<AANLkTinCTcnr=tyC2+C4u5L0p_mXxTCMfSBm_JzqqMDW@mail.gmail.com>
On Sat, Jul 24, 2010 at 5:12 AM, Mahesh Vaidya <forvaidya@gmail.com> wrote:
Show 19 quoted lines
> If git tag's history is preserved or I need to implement this in
> pre-receive hook
>
> Scenario
> ^^^^^^^^^^^^
> I create a tag FOO -corresponding to a commit cdf123
>
> FOO->cdf123 and I push this Tag to authoritative repository ; all fine.
>
> Now my buddy creates overwrite my tag (git tag -f) and now this tag
> looks at some other commit
>
> FOO->123aff
>
> He does a push tag FOO; assuming no restriction in pre-receive this
> push will get applied and my earlier cdf123 is lost. Is there any way
> to retrive Tag's history or in need to implement some scheme
>
> Thx/ Mahesh
He won't be able to push the tag unless he forcibly deletes your tag first.

Tags do not have history. This is a non-technical problem. If s/he's deleting your tags, it's a social problem.

-- 
    David
Previous: Mahesh VaidyaNext: Will Palmer
Message 2 of 4 in “git tag's history”
  1. Mahesh VaidyaJul 24, 2010
  2. David AguilarJul 26, 2010
  3. Will PalmerJul 26, 2010
  4. Nicolas SebrechtJul 26, 2010

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.