From: Paolo Ciarrocchi Date: Sun, 05 Apr 2009 21:25:29 GMT Subject: Re: [question] how can i verify whether a local branch is tracking a remote branch? Message-ID: <4d8e3fd30904051425w6739a12fp5666e71e8b2d7958@mail.gmail.com> In-Reply-To: <20090405144413.GC2076@sigill.intra.peff.net> On 4/5/09, Jeff King 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/