git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Riesen <raa.lkml@gmail.com>
To: Kristian Amlie <kristian.amlie@nokia.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 14:48:21 +0200	[thread overview]
Message-ID: <81b0412b0906150548m69abc1bax785a4743119804c6@mail.gmail.com> (raw)
In-Reply-To: <4A363741.9030604@nokia.com>

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.

  parent reply	other threads:[~2009-06-15 12:48 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 [this message]
2009-06-15 13:10     ` Kristian Amlie
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=81b0412b0906150548m69abc1bax785a4743119804c6@mail.gmail.com \
    --to=raa.lkml@gmail.com \
    --cc=dotanba@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=kristian.amlie@nokia.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 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).