{"thread":{"id":"22323","subject":"How do I get a list of tracking branches","startedAt":"2010-01-21T09:25:37Z","lastAt":"2010-01-21T10:03:46Z","messageCount":3,"participants":["Howard Miller","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"132286","messageId":"26ae428a1001210125j156b61afs64bb915a934530c6@mail.gmail.com","threadId":"22323","inReplyTo":null,"subject":"How do I get a list of tracking branches","fromName":"Howard Miller","fromEmail":"howard@e-learndesign.co.uk","sentAt":"2010-01-21T09:25:37Z","receivedAt":"2010-01-21T09:25:37Z","isPatch":false,"sender":{"key":"howard@e-learndesign.co.uk","avatar":"https://gravatar.com/avatar/ddb66c6a4a077e52b823ac5b04f33ab927cb90e2ab1eafedaeba07b1920bb99e?d=mp&s=160"},"body":"Hi,\n\nI know I can go and look at the config file and get this info but is\nthere a simple command that shows which local branches are tracking\nremote branches? It seems like a very obvious thing to want to know\nbut I can't find it. 'branch -av' even shows 'n behind' and/or 'n\nahead' but not *what* it is behind or ahead.\n\nThanks!\n"},{"id":"132290","messageId":"4B5823C1.9010904@drmicha.warpmail.net","threadId":"22323","inReplyTo":"26ae428a1001210125j156b61afs64bb915a934530c6@mail.gmail.com","subject":"Re: How do I get a list of tracking branches","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-01-21T09:52:01Z","receivedAt":"2010-01-21T09:52:01Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Howard Miller venit, vidit, dixit 21.01.2010 10:25:\n> Hi,\n> \n> I know I can go and look at the config file and get this info but is\n> there a simple command that shows which local branches are tracking\n> remote branches? It seems like a very obvious thing to want to know\n> but I can't find it. 'branch -av' even shows 'n behind' and/or 'n\n> ahead' but not *what* it is behind or ahead.\n\nThe latter info you get with git branch -vv.\n\nBut you said you wanted to know which local branches have upstreams. Or\ndo you want to know which local branches have a specific remote as upstream?\n\nMichael\n"},{"id":"132291","messageId":"26ae428a1001210203kf5feb0bt132546421a8fae2e@mail.gmail.com","threadId":"22323","inReplyTo":"4B5823C1.9010904@drmicha.warpmail.net","subject":"Re: How do I get a list of tracking branches","fromName":"Howard Miller","fromEmail":"howard@e-learndesign.co.uk","sentAt":"2010-01-21T10:03:46Z","receivedAt":"2010-01-21T10:03:46Z","isPatch":false,"sender":{"key":"howard@e-learndesign.co.uk","avatar":"https://gravatar.com/avatar/ddb66c6a4a077e52b823ac5b04f33ab927cb90e2ab1eafedaeba07b1920bb99e?d=mp&s=160"},"body":">> I know I can go and look at the config file and get this info but is\n>> there a simple command that shows which local branches are tracking\n>> remote branches? It seems like a very obvious thing to want to know\n>> but I can't find it. 'branch -av' even shows 'n behind' and/or 'n\n>> ahead' but not *what* it is behind or ahead.\n>\n> The latter info you get with git branch -vv.\n>\n> But you said you wanted to know which local branches have upstreams. Or\n> do you want to know which local branches have a specific remote as upstream?\n>\n> Michael\n\nHi Michael,\n\nThanks. That's *exactly* what I needed. It's just an extension of my\ngeneral rant that while git makes it very easy to create branches it\nalso makes it very easy to forget why you created them. Or it's easy\nfor me to forget anyway :-)\n\nHoward\n"}]}