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

Simple questions on GIT usage.

From
FFranck <vagabon.xyz@gmail.com>
Date
Nov 14, 2005, 15:46 UTC
Message-ID
<cda58cb80511140746w2f691fb8y@mail.gmail.com>
Hi,

I'd like to know how to delete an entire branch and all it's related objects. Is the following correct to accomplish that ?

        # rm -f .git/refs/heads/mybranch
        # git-prune

And a second question is: how to get the tree ID of the working repository ? I know it's very basic but I can't find out the answer in any documentations.

Thanks
--
               Franck
Next: Andreas Ericsson
Message 1 of 5 in “Simple questions on GIT usage.”
  1. FranckNov 14, 2005
  2. Andreas EricssonNov 14, 2005
  3. Randal L. SchwartzNov 14, 2005
  4. Andreas EricssonNov 14, 2005
  5. FranckNov 14, 2005

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.