From: "Dirk Süsserott" <newsletter@dirk.my1.cc>
To: Jason Timrod <jtimrod@yahoo.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: "git branch" to list whether it's tracking remote branch?
Date: Tue, 14 Jun 2011 15:57:22 +0200 [thread overview]
Message-ID: <4DF768C2.2050001@dirk.my1.cc> (raw)
In-Reply-To: <934599.4947.qm@web121018.mail.ne1.yahoo.com>
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
prev parent reply other threads:[~2011-06-14 13:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DF768C2.2050001@dirk.my1.cc \
--to=newsletter@dirk.my1.cc \
--cc=git@vger.kernel.org \
--cc=jtimrod@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).