From: Junio C Hamano Date: Tue, 10 Jan 2006 10:25:55 GMT Subject: Re: killing a branch Message-ID: <7vr77g8jm4.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20060110102207.GP3389@suse.de> Jens Axboe 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 that having dangling objects in your repository is not a crime, and you do not have to religiously do "git prune" every time.