From: Tim Visher Date: Tue, 06 Apr 2010 18:25:07 GMT Subject: Re: Getting rid of a stale remote? Message-ID: In-Reply-To: On Tue, Apr 6, 2010 at 2:07 PM, Ramkumar Ramachandra wrote: >> I'm trying to get rid of a stale remote.  I deleted the remote via >> `git remote rm ` and that removed it from .git/config but for >> some reason the references stayed in the listing of `git branch -a`. > > See `git remote prune`. From the remote man page: > prune > Deletes all stale tracking branches under . These stale branches > have already been removed from the remote repository referenced by > , but are still locally available in "remotes/". I'm unclear as to how this solves my problem. Consider the following: $ git remote a b c $ git branch -a a b c remotes/a/branch remotes/b/branch remotes/c/branch remotes/d/branch $ git remote prune d fatal: 'd' does not appear to be a git repository fatal: The remote end hung up unexpectedly $ git remote rm d error: Could not remove config section 'remote.d' I would like to get rid of the `remotes/d/branch` entry. -- In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail