Re: killing a branch
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jan 10, 2006, 10:25 UTC
- Message-ID
- <7vr77g8jm4.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060110102207.GP3389@suse.de>
Jens Axboe <axboe@suse.de> writes:
Show 5 quoted lines
> $ 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 prunebut 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.