From: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: [question] how can i verify whether a local branch is tracking a remote branch?
Date: Sun, 5 Apr 2009 23:25:29 +0200 [thread overview]
Message-ID: <4d8e3fd30904051425w6739a12fp5666e71e8b2d7958@mail.gmail.com> (raw)
In-Reply-To: <20090405144413.GC2076@sigill.intra.peff.net>
On 4/5/09, Jeff King <peff@peff.net> wrote:
> On Sun, Apr 05, 2009 at 12:32:29PM +0200, Paolo Ciarrocchi wrote:
>
>> is there a way to verify, using the UI, whether a local branch is
>> tracking a remote branch?
>
> Do you mean "whether it is tracking any branch", or "whether the branch
> is is tracking is remote"?
I mean whether it is tracking a branch and if it is I want to know
which branch is being tracked.
> If the former, then I think if one of branch.$branch.{merge,rebase}
> is set, it is tracking something. The tracked thing is remote unless
> branch.$branch.remote is ".".
An example:
$ git clone -n URL temp
$ cd temp
$ git branch -r
origin/master
origin/foo
Origin/bar
$ git checkout --track -b foo origin/foo
Now, how can I know that foo is tracking origin/foo ?
Thanks.
Ciao,
--
Paolo
http://paolo.ciarrocchi.googlepages.com/
http://mypage.vodafone.it/
next prev parent reply other threads:[~2009-04-05 21:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-05 10:32 [question] how can i verify whether a local branch is tracking a remote branch? Paolo Ciarrocchi
2009-04-05 14:44 ` Jeff King
2009-04-05 21:25 ` Paolo Ciarrocchi [this message]
2009-04-06 4:34 ` Jeff King
2009-04-06 5:28 ` Junio C Hamano
2009-04-06 5:49 ` Jeff King
2009-04-06 8:30 ` Paolo Ciarrocchi
2009-04-06 21:25 ` Jeff King
2009-04-06 22:00 ` Paolo Ciarrocchi
2009-04-07 4:41 ` Jeff King
2009-04-06 12:00 ` Michael J Gruber
2009-04-06 21:29 ` Jeff King
2009-04-07 7:59 ` Michael J Gruber
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=4d8e3fd30904051425w6739a12fp5666e71e8b2d7958@mail.gmail.com \
--to=paolo.ciarrocchi@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/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).