From: Steffen Prohaska Date: Tue, 13 Nov 2007 18:39:39 GMT Subject: Re: [Newbie] How to *actually* get rid of remote tracking branch? Message-ID: <6D2FF44E-5D45-4341-B863-1C33C104D3EA@zib.de> In-Reply-To: <87d4ue81tv.fsf@osv.gnss.ru> On Nov 13, 2007, at 6:58 PM, wrote: >>>> So I'm not sure if it is a bug, misfeature or a feature. >>> >>> It doesn't make sense to delete remote-tracking branches >>> locally if they are still present at the remote. The main >>> purpose of a remote-tracking branch is to be identical to the >>> real remote branch. >> >> True, but it would be nice to have an option to _exclude_ some >> branches from fetching (for example 'html' and 'man' branches >> of git.git), while still picking up new branches automatically >> on fetch. > > Guys, could you please read man git-branch? What do you think this > example is doing?: > > > Delete unneeded branch:: > + > ------------ > $ git clone git://git.kernel.org/.../git.git my.git > $ cd my.git > $ git branch -d -r origin/todo origin/html origin/man <1> > $ git branch -D test <2> > ------------ > + > <1> Delete remote-tracking branches "todo", "html", "man" > > > That's *exactly* what I did! And it *doesn't work*! Well, it does > delete > the branches, but they are automagically re-created on the next fetch, > so "deleting" them this way is useless. Yes, it is useless. The man page should be fixed. Steffen