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

Re: Archiving tags/branches?

From
David Symonds <dsymonds@gmail.com>
Date
Oct 18, 2008, 02:50 UTC
Message-ID
<ee77f5c20810171950j9ab85bfi6eddca167f86fda2@mail.gmail.com>
In-Reply-To
<48F93F52.4070506@pcharlan.com>
On Sat, Oct 18, 2008 at 12:43 PM, Pete Harlan <pgit@pcharlan.com> wrote:
Show 9 quoted lines
> Hi,
>
> I'm looking for a way to manage an ever-growing list of tags.  I've read
> some git docs, but am new to git and wonder if the below method doesn't
> work or if there's a standard practice I haven't run into.
>
> Most of the tags in my repo are uninteresting to look at, but can't be
> deleted.  (Code releases for the most part, or stalled topic branches.)
>  If I wanted to archive those, it looks like this would work:

Is it really true that they can't be deleted? The only reason to avoid it might be for preventing Git's GC from cleaning them up, but if all your branches/tags are reachable via "interesting" branches/tags then you could just slap the tag name and SHA1 in a text file somewhere.

Dave.
Previous: Pete HarlanNext: Pete Harlan
Message 2 of 14 in “Archiving tags/branches?”
  1. Pete HarlanOct 18, 2008
  2. David SymondsOct 18, 2008
  3. Pete HarlanOct 20, 2008
  4. SZEDER GáborOct 18, 2008
  5. Johan HerlandOct 18, 2008
  6. SZEDER GáborOct 18, 2008
  7. Johan HerlandOct 18, 2008
  8. Pete HarlanOct 20, 2008
  9. Johan HerlandOct 20, 2008
  10. Pete HarlanOct 21, 2008
  11. Jakub NarebskiOct 20, 2008
  12. Pete HarlanOct 21, 2008
  13. Jakub NarebskiOct 21, 2008
  14. Pete HarlanOct 21, 2008

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.