{"thread":{"id":"22096","subject":"cannot remove remote branch name","startedAt":"2010-01-05T01:57:18Z","lastAt":"2010-01-05T02:18:29Z","messageCount":3,"participants":["SungHyun Nam","Erik Faye-Lund","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"130804","messageId":"hhu694$3v9$1@ger.gmane.org","threadId":"22096","inReplyTo":null,"subject":"cannot remove remote branch name","fromName":"SungHyun Nam","fromEmail":"goweol@gmail.com","sentAt":"2010-01-05T01:57:18Z","receivedAt":"2010-01-05T01:57:18Z","isPatch":false,"sender":{"key":"goweol@gmail.com","avatar":null},"body":"Hello,\n\nHow I can remove remote branch name if it already removed\nin remote side?\n\n$ git branch -a\n* master\n   remotes/origin/HEAD -> origin/master\n   remotes/origin/master\n   remotes/origin/test\n$ git branch -D -r test\nerror: remote branch 'test' not found.\n$ git branch -D -r remotes/origin/test\nerror: remote branch 'remotes/origin/test' not found.\n$ git branch -D remotes/origin/test\nerror: branch 'remotes/origin/test' not found.\n\nThe 'remotes/origin/test' was removed in remote side.\n\nThanks,\nnamsh\n"},{"id":"130806","messageId":"40aa078e1001041759p22657d0cwe094a348dca32842@mail.gmail.com","threadId":"22096","inReplyTo":"hhu694$3v9$1@ger.gmane.org","subject":"Re: cannot remove remote branch name","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@googlemail.com","sentAt":"2010-01-05T01:59:37Z","receivedAt":"2010-01-05T01:59:37Z","isPatch":false,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"On Tue, Jan 5, 2010 at 2:57 AM, SungHyun Nam <goweol@gmail.com> wrote:\n> Hello,\n>\n> How I can remove remote branch name if it already removed\n> in remote side?\n>\n> $ git branch -a\n> * master\n>  remotes/origin/HEAD -> origin/master\n>  remotes/origin/master\n>  remotes/origin/test\n> $ git branch -D -r test\n> error: remote branch 'test' not found.\n> $ git branch -D -r remotes/origin/test\n> error: remote branch 'remotes/origin/test' not found.\n> $ git branch -D remotes/origin/test\n> error: branch 'remotes/origin/test' not found.\n>\n> The 'remotes/origin/test' was removed in remote side.\n>\n\n$ git remote prune origin\n\n-- \nErik \"kusma\" Faye-Lund\n"},{"id":"130807","messageId":"7vskal9tvu.fsf@alter.siamese.dyndns.org","threadId":"22096","inReplyTo":"hhu694$3v9$1@ger.gmane.org","subject":"Re: cannot remove remote branch name","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2010-01-05T02:18:29Z","receivedAt":"2010-01-05T02:18:29Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"SungHyun Nam <goweol@gmail.com> writes:\n\n> How I can remove remote branch name if it already removed\n> in remote side?\n>\n> $ git branch -a\n> * master\n>   remotes/origin/HEAD -> origin/master\n>   remotes/origin/master\n>   remotes/origin/test\n> $ git branch -D -r test\n> error: remote branch 'test' not found.\n> $ git branch -D -r remotes/origin/test\n> error: remote branch 'remotes/origin/test' not found.\n> $ git branch -D remotes/origin/test\n> error: branch 'remotes/origin/test' not found.\n\nHmm, you tried \"test\" and then \"remotes/origin/test\"?\n\nThe way I would have guessed what to give the command is:\n\n 1. \"branch -D -r test\" wouldn't make sense, as git wouldn't know 'test'\n    of which remote I am trying to remove;\n\n 2. \"-r\" already tells git that I am talking about remote, so perhaps\n    \"branch -D -r origin/test\" would work without me saying \"remotes/\".\n\n\"git branch -[dD]\" doesn't go over the network, so it doesn't matter if it\nis already removed on the remote side or not.\n"}]}