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

Re: Restore annotated tag?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Sep 22, 2010, 18:39 UTC
Message-ID
<20100922183917.GP32601@spearce.org>
In-Reply-To
<AANLkTingnVMsRp8+r5-D=c-7mxfaMY1V06YXT2FQzAoL@mail.gmail.com>
skillzero@gmail.com wrote:
Show 7 quoted lines
> 
> One thing I noticed that I wasn't sure about is that I SSH'd into the
> server and ran git update-ref to restore the tag. That created the
> symbolic name in .git/refs/tags/NAME to point to that tag object. But
> what I noticed is that the only file listed in .git/refs/tags is the
> tag I restored. There are other tags in the repository (and a fresh
> clone gets them), but they don't show up in that directory.
The other tags are in the .git/packed-refs file.
> Is it
> going to be a problem that ran git update-ref on the server (which is
> a bare repository) rather than on a clone that I push?
No.
-- 
Shawn.
Previous: skillzero@gmail.com
Message 4 of 4 in “Restore annotated tag?”
  1. skillzero@gmail.comSep 22, 2010
  2. Shawn O. PearceSep 22, 2010
  3. skillzero@gmail.comSep 22, 2010
  4. Shawn O. PearceSep 22, 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.