{"thread":{"id":"24153","subject":"Deleting remote branches","startedAt":"2010-06-19T18:17:51Z","lastAt":"2010-06-20T04:49:54Z","messageCount":2,"participants":["jhapk","Jon Seymour"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"143946","messageId":"1276971471250-5199192.post@n2.nabble.com","threadId":"24153","inReplyTo":null,"subject":"Deleting remote branches","fromName":"jhapk","fromEmail":"pradeep.kumar.jha@gmail.com","sentAt":"2010-06-19T18:17:51Z","receivedAt":"2010-06-19T18:17:51Z","isPatch":false,"sender":{"key":"pradeep.kumar.jha@gmail.com","avatar":null},"body":"\nHi,\n\nI added a remote called PCM to my repository. So when I do a \n$git branch -a\n\nIt shows me all the branches of the remote. I decided I don't want the\nremote anymore, so I deleted it from my .git/config file and did\n$git remote update\n\nThe first command verified that PCM is not a remote anymore, but still when\nI do a $git branch -a,  I see all the branches of PCM.\n\nHow do I get rid of it?\n\nThanks\n \n-- \nView this message in context: http://git.661346.n2.nabble.com/Deleting-remote-branches-tp5199192p5199192.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"143948","messageId":"AANLkTimjVoRBDxRyfOcDc2SGacSReL9VdN8vhPGIdZ5b@mail.gmail.com","threadId":"24153","inReplyTo":"1276971471250-5199192.post@n2.nabble.com","subject":"Re: Deleting remote branches","fromName":"Jon Seymour","fromEmail":"jon.seymour@gmail.com","sentAt":"2010-06-20T04:49:54Z","receivedAt":"2010-06-20T04:49:54Z","isPatch":false,"sender":{"key":"jon.seymour@gmail.com","avatar":"https://avatars.githubusercontent.com/u/207131?v=4"},"body":"You probably should have used git remote rm PCM which will maintain\nthe consistency between .git/config and .git/refs/remotes\n\nProbably easiest thing to do would be to add a remote called PCM back,\nthen remove it with git remote rm PCM.\n\njon.\n\nOn Sun, Jun 20, 2010 at 4:17 AM, jhapk <pradeep.kumar.jha@gmail.com> wrote:\n>\n> Hi,\n>\n> I added a remote called PCM to my repository. So when I do a\n> $git branch -a\n>\n> It shows me all the branches of the remote. I decided I don't want the\n> remote anymore, so I deleted it from my .git/config file and did\n> $git remote update\n>\n> The first command verified that PCM is not a remote anymore, but still when\n> I do a $git branch -a,  I see all the branches of PCM.\n>\n> How do I get rid of it?\n>\n> Thanks\n>\n> --\n> View this message in context: http://git.661346.n2.nabble.com/Deleting-remote-branches-tp5199192p5199192.html\n> Sent from the git mailing list archive at Nabble.com.\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n"}]}