Re: killing a branch
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