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

Re: git tag -u feature request

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 6, 2015, 07:02 UTC
Message-ID
<8b6abb32537f04b3a310602d3161d559@www.dscho.org>
In-Reply-To
<9fa7de80732928631304708be9504271@artax.karlin.mff.cuni.cz>
Hi Hans,
On 2015-05-06 08:09, Hans Ginzel wrote:
Show 5 quoted lines
> please, would it be possible to add -u option to git tag for updating tag
> (with message) to a new commit, e.g. after rebase.
> 
> See
> http://stackoverflow.com/questions/8044583/how-can-i-move-a-tag-on-a-git-branch-to-a-different-commit
As the answer http://stackoverflow.com/questions/8044583/how-can-i-move-a-tag-on-a-git-branch-to-a-different-commit/8044605#8044605 says: there is the `-f` flag.
It is appropriate to call the flag `--force` rather than `--update` because the social contract of tags is that they do not change.

Ciao, Johannes

Previous: Hans Ginzel
Message 2 of 2 in “git tag -u feature request”
  1. Hans GinzelMay 6, 2015
  2. Johannes SchindelinMay 6, 2015

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.