{"thread":{"id":"23185","subject":"Deleting branches","startedAt":"2010-03-26T14:41:20Z","lastAt":"2010-03-26T15:12:11Z","messageCount":2,"participants":["jhapk","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"137848","messageId":"1269614480145-4804268.post@n2.nabble.com","threadId":"23185","inReplyTo":null,"subject":"Deleting branches","fromName":"jhapk","fromEmail":"pradeep.kumar.jha@gmail.com","sentAt":"2010-03-26T14:41:20Z","receivedAt":"2010-03-26T14:41:20Z","isPatch":false,"sender":{"key":"pradeep.kumar.jha@gmail.com","avatar":null},"body":"\nHi,\nI wanted to see the all the branches of a remote repository and so in my\n.git/config file I had something like\n[remote \"jeff\"]\n        url = /nfs/kris/d1/people/jeff/cffc\n        fetch = +refs/heads/*:refs/remotes/jeff/*\n\nBut then I decided that I only need to see one particular_branch and I\nchanged it to\n[remote \"jeff\"]\n        url = /nfs/kris/d1/people/jeff/cffc\n        fetch =\n+refs/heads/particular_branch:refs/remotes/jeff/particular_branch\n\nBut even now, when I do a $git branch -a, I see this\n[pradeep@scaramanga cffc]$ git branch -a\n  jeff\n  master\n* work\n  jeff/local\n  jeff/master\n  jeff/particular_branch\n  origin/HEAD\n  origin/master\n  origin/work\n\nWhy am I still getting the other jeff branches in my list and how do I\ndelete them?\nTHanks\n-- \nView this message in context: http://n2.nabble.com/Deleting-branches-tp4804268p4804268.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"137853","messageId":"4BACCECB.9040905@drmicha.warpmail.net","threadId":"23185","inReplyTo":"1269614480145-4804268.post@n2.nabble.com","subject":"Re: Deleting branches","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-03-26T15:12:11Z","receivedAt":"2010-03-26T15:12:11Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"jhapk venit, vidit, dixit 26.03.2010 15:41:\n> \n> Hi,\n> I wanted to see the all the branches of a remote repository and so in my\n> .git/config file I had something like\n> [remote \"jeff\"]\n>         url = /nfs/kris/d1/people/jeff/cffc\n>         fetch = +refs/heads/*:refs/remotes/jeff/*\n> \n> But then I decided that I only need to see one particular_branch and I\n> changed it to\n> [remote \"jeff\"]\n>         url = /nfs/kris/d1/people/jeff/cffc\n>         fetch =\n> +refs/heads/particular_branch:refs/remotes/jeff/particular_branch\n> \n> But even now, when I do a $git branch -a, I see this\n> [pradeep@scaramanga cffc]$ git branch -a\n>   jeff\n>   master\n> * work\n>   jeff/local\n>   jeff/master\n>   jeff/particular_branch\n>   origin/HEAD\n>   origin/master\n>   origin/work\n> \n> Why am I still getting the other jeff branches in my list\n\nBecause the config determines what is fetched, it does not delete\nexisting refs.\n\n> and how do I\n> delete them?\n> THanks\n\ngit branch -Dr jeff/other_branch\n\nCheers,\nMichael\n"}]}