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

killing a branch

From
JAJens Axboe <axboe@suse.de>
Date
Jan 10, 2006, 10:22 UTC
Message-ID
<20060110102207.GP3389@suse.de>
Hi,

When I need to delete a branch from my git tree, I'm currently using this (slooow) approach:

$ rm .git/refs/heads/branch-name $ git prune

to rid myself of the branch and associated objects. Is there a faster approach?

(please cc me, not on the list)
-- 
Jens Axboe
Next: Junio C Hamano
Message 1 of 7 in “killing a branch”
  1. Jens AxboeJan 10, 2006
  2. Junio C HamanoJan 10, 2006
  3. Jens AxboeJan 10, 2006
  4. Junio C HamanoJan 10, 2006
  5. Jens AxboeJan 10, 2006
  6. Linus TorvaldsJan 10, 2006
  7. Jens AxboeJan 10, 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.