git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How do I get a list of tracking branches

From
Howard Miller <howard@e-learndesign.co.uk>
Date
Jan 21, 2010, 10:03 UTC
Message-ID
<26ae428a1001210203kf5feb0bt132546421a8fae2e@mail.gmail.com>
In-Reply-To
<4B5823C1.9010904@drmicha.warpmail.net>
Show 12 quoted lines
>> I know I can go and look at the config file and get this info but is
>> there a simple command that shows which local branches are tracking
>> remote branches? It seems like a very obvious thing to want to know
>> but I can't find it. 'branch -av' even shows 'n behind' and/or 'n
>> ahead' but not *what* it is behind or ahead.
>
> The latter info you get with git branch -vv.
>
> But you said you wanted to know which local branches have upstreams. Or
> do you want to know which local branches have a specific remote as upstream?
>
> Michael
Hi Michael,

Thanks. That's *exactly* what I needed. It's just an extension of my general rant that while git makes it very easy to create branches it also makes it very easy to forget why you created them. Or it's easy for me to forget anyway :-)

Howard
Previous: Michael J Gruber
Message 3 of 3 in “How do I get a list of tracking branches”
  1. Howard MillerJan 21, 2010
  2. Michael J GruberJan 21, 2010
  3. Howard MillerJan 21, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.