From: Kristian Amlie <kristian.amlie@nokia.com>
To: ext Alex Riesen <raa.lkml@gmail.com>
Cc: Dotan Barak <dotanba@gmail.com>,
"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: How can i find the origin of a branch?
Date: Mon, 15 Jun 2009 15:10:34 +0200 [thread overview]
Message-ID: <4A36484A.3040207@nokia.com> (raw)
In-Reply-To: <81b0412b0906150548m69abc1bax785a4743119804c6@mail.gmail.com>
ext Alex Riesen wrote:
> 2009/6/15 Kristian Amlie <kristian.amlie@nokia.com>:
>> 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
next prev parent reply other threads:[~2009-06-15 13:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-15 11:37 How can i find the origin of a branch? Dotan Barak
2009-06-15 11:57 ` Kristian Amlie
2009-06-15 12:03 ` Dotan Barak
2009-06-15 13:34 ` Dotan Barak
2009-06-15 12:48 ` Alex Riesen
2009-06-15 13:10 ` Kristian Amlie [this message]
2009-06-15 12:07 ` Alex Riesen
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=4A36484A.3040207@nokia.com \
--to=kristian.amlie@nokia.com \
--cc=dotanba@gmail.com \
--cc=git@vger.kernel.org \
--cc=raa.lkml@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.