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

Re: can I remove or move a tag in a remote repository?

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 29, 2006, 13:46 UTC
Message-ID
<ekk2sh$8ja$1@sea.gmane.org>
In-Reply-To
<Pine.LNX.4.63.0611291220130.30004@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin wrote:
Show 11 quoted lines
>> Without even considering any other option, I chose to use a lightweight
>> tag for that purpose, since I have a conceptual view that it's a label I
>> can move from one referent to another.  It strikes me as counter-intuitive
>> to use a temporary git "branch" that way.  Would that even work, removing
>> it and recreating it all the time?
> 
> Yes, it would. Remember: a branch in git is just a named ref. It 
> literally used to be a 41-byte file pointing to the tip of the branch in 
> the ancestor graph. And you can update it with git-update-ref.
> 
> So, a branch in git is very much the movable label you are looking for.

And even if cvs-head does not fast-forward, remember that pu branch also doesn't fast-forward (usually).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Johannes SchindelinNext: Andy Whitcroft
Message 8 of 9 in “can I remove or move a tag in a remote repository?”
  1. Jim MeyeringNov 19, 2006
  2. Jakub NarebskiNov 19, 2006
  3. Andreas EricssonNov 28, 2006
  4. Junio C HamanoNov 28, 2006
  5. Johannes SchindelinNov 29, 2006
  6. Jim MeyeringNov 29, 2006
  7. Johannes SchindelinNov 29, 2006
  8. Jakub NarebskiNov 29, 2006
  9. Andy WhitcroftNov 29, 2006

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.