{"thread":{"id":"27620","subject":"\"git branch\" to list whether it's tracking remote branch?","startedAt":"2011-06-14T10:23:38Z","lastAt":"2011-06-14T13:57:22Z","messageCount":2,"participants":["Jason Timrod","Dirk Süsserott"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"169992","messageId":"934599.4947.qm@web121018.mail.ne1.yahoo.com","threadId":"27620","inReplyTo":null,"subject":"\"git branch\" to list whether it's tracking remote branch?","fromName":"Jason Timrod","fromEmail":"jtimrod@yahoo.com","sentAt":"2011-06-14T10:23:38Z","receivedAt":"2011-06-14T10:23:38Z","isPatch":false,"sender":{"key":"jtimrod@yahoo.com","avatar":null},"body":"Hi,\n\nplease cc me as i am not subscribed to this list.\n\nis there a command in git that will tell me if a given topic branch in a repository is setup to track a remote branch?\n\ni think it would be useful so i can see which branches are pointing where when i try and then do a \"git push\"\n\nTIA!\n\nJason\n"},{"id":"170003","messageId":"4DF768C2.2050001@dirk.my1.cc","threadId":"27620","inReplyTo":"934599.4947.qm@web121018.mail.ne1.yahoo.com","subject":"Re: \"git branch\" to list whether it's tracking remote branch?","fromName":"Dirk Süsserott","fromEmail":"newsletter@dirk.my1.cc","sentAt":"2011-06-14T13:57:22Z","receivedAt":"2011-06-14T13:57:22Z","isPatch":false,"sender":{"key":"newsletter@dirk.my1.cc","avatar":null},"body":"Hi Jason,\n\nAm 14.06.2011 12:23 schrieb Jason Timrod:\n> Hi,\n> \n> please cc me as i am not subscribed to this list.\n> \n> is there a command in git that will tell me if a given topic branch in a repository is setup to track a remote branch?\n> \n> i think it would be useful so i can see which branches are pointing where when i try and then do a \"git push\"\n> \n> TIA!\n> \n> Jason\n\nyou could do \"git branch -avv\" (especially -vv for \"very verbose\" :-))\n\n---------\n  docs   57dddc4 Docs: Reformatted ...\n* foo    96afa77 [pub/foo] Ticket 1234 ...\n---------\n\nIn the second line you can see that local branch \"foo\" follows \"foo\" in\nthe remote \"pub\".\n\nOr simply \"cat .git/config\" and check the \"branches\" sections:\n\n---------\n[branch \"foo\"]\n        remote = pub\n        merge = refs/heads/foo\n---------\n\n\nHTH,\nDirk\n"}]}