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

Re: killing a branch

From
JAJens Axboe <axboe@suse.de>
Date
Jan 10, 2006, 10:35 UTC
Message-ID
<20060110103533.GT3389@suse.de>
In-Reply-To
<7vr77g8jm4.fsf@assigned-by-dhcp.cox.net>
On Tue, Jan 10 2006, Junio C Hamano wrote:
Show 14 quoted lines
> Jens Axboe <axboe@suse.de> writes:
> 
> > $ rm .git/refs/heads/branch-name
> > $ git prune
> >
> > to rid myself of the branch and associated objects. Is there a faster
> > approach?
> 
> Perhaps the "official" way is
> 
> 	$ git branch -d branch-name ;# you may need -D
>         $ git prune
> 
> but that essentially is the same as what you are doing.  Note
So no time saved there :-)
> that having dangling objects in your repository is not a crime,
> and you do not have to religiously do "git prune" every time.
I know, it just doesn't feel nice!
-- 
Jens Axboe
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 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.