On Tue, Apr 6, 2010 at 2:07 PM, Ramkumar Ramachandra <artagnon@xxxxxxxxx> wrote: >> I'm trying to get rid of a stale remote. I deleted the remote via >> `git remote rm <remote>` 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 <name>. These stale branches > have already been removed from the remote repository referenced by > <name>, but are still locally available in "remotes/<name>". 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html