Re: [question] how can i verify whether a local branch is tracking a remote branch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/5/09, Jeff King <peff@xxxxxxxx> 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/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux