From: Kristian Amlie Date: Mon, 15 Jun 2009 13:10:34 GMT Subject: Re: How can i find the origin of a branch? Message-ID: <4A36484A.3040207@nokia.com> In-Reply-To: <81b0412b0906150548m69abc1bax785a4743119804c6@mail.gmail.com> ext Alex Riesen wrote: > 2009/6/15 Kristian Amlie : >> ext Dotan Barak wrote: >>> Is it possible to find the origin of a branch? >>> (the remote repository that this branch was cloned and checked out from) >> git config -l >> >> Assuming you're on the master branch, branch.master.remote and >> branch.master.merge will tell you which remote and which branch you are >> tracking. Assuming that the remote is origin, you can check >> remote.origin.url to see the URL of the repo. > > Except when it is just happen to have the same name. > IOW, it is a BIG oversimplification. Probably, but why make the simple case overcomplicated? It should give you the answer in 90% of the cases. -- Kristian