* "git branch" to list whether it's tracking remote branch?
@ 2011-06-14 10:23 Jason Timrod
2011-06-14 13:57 ` Dirk Süsserott
0 siblings, 1 reply; 2+ messages in thread
From: Jason Timrod @ 2011-06-14 10:23 UTC (permalink / raw)
To: git@vger.kernel.org
Hi,
please cc me as i am not subscribed to this list.
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?
i think it would be useful so i can see which branches are pointing where when i try and then do a "git push"
TIA!
Jason
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "git branch" to list whether it's tracking remote branch?
2011-06-14 10:23 "git branch" to list whether it's tracking remote branch? Jason Timrod
@ 2011-06-14 13:57 ` Dirk Süsserott
0 siblings, 0 replies; 2+ messages in thread
From: Dirk Süsserott @ 2011-06-14 13:57 UTC (permalink / raw)
To: Jason Timrod; +Cc: git@vger.kernel.org
Hi Jason,
Am 14.06.2011 12:23 schrieb Jason Timrod:
> Hi,
>
> please cc me as i am not subscribed to this list.
>
> 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?
>
> i think it would be useful so i can see which branches are pointing where when i try and then do a "git push"
>
> TIA!
>
> Jason
you could do "git branch -avv" (especially -vv for "very verbose" :-))
---------
docs 57dddc4 Docs: Reformatted ...
* foo 96afa77 [pub/foo] Ticket 1234 ...
---------
In the second line you can see that local branch "foo" follows "foo" in
the remote "pub".
Or simply "cat .git/config" and check the "branches" sections:
---------
[branch "foo"]
remote = pub
merge = refs/heads/foo
---------
HTH,
Dirk
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-14 13:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14 10:23 "git branch" to list whether it's tracking remote branch? Jason Timrod
2011-06-14 13:57 ` Dirk Süsserott
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).