git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How do I get a list of tracking branches
@ 2010-01-21  9:25 Howard Miller
  2010-01-21  9:52 ` Michael J Gruber
  0 siblings, 1 reply; 3+ messages in thread
From: Howard Miller @ 2010-01-21  9:25 UTC (permalink / raw)
  To: git

Hi,

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.

Thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How do I get a list of tracking branches
  2010-01-21  9:25 How do I get a list of tracking branches Howard Miller
@ 2010-01-21  9:52 ` Michael J Gruber
  2010-01-21 10:03   ` Howard Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Michael J Gruber @ 2010-01-21  9:52 UTC (permalink / raw)
  To: Howard Miller; +Cc: git

Howard Miller venit, vidit, dixit 21.01.2010 10:25:
> Hi,
> 
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How do I get a list of tracking branches
  2010-01-21  9:52 ` Michael J Gruber
@ 2010-01-21 10:03   ` Howard Miller
  0 siblings, 0 replies; 3+ messages in thread
From: Howard Miller @ 2010-01-21 10:03 UTC (permalink / raw)
  To: Michael J Gruber; +Cc: git

>> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-21 10:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-21  9:25 How do I get a list of tracking branches Howard Miller
2010-01-21  9:52 ` Michael J Gruber
2010-01-21 10:03   ` Howard Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).