From: Kristian Amlie <kristian.amlie@nokia.com>
To: Dotan Barak <dotanba@gmail.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: How can i find the origin of a branch?
Date: Mon, 15 Jun 2009 13:57:53 +0200 [thread overview]
Message-ID: <4A363741.9030604@nokia.com> (raw)
In-Reply-To: <2f3bf9a60906150437v765c2cecva61307ae9cf0cec7@mail.gmail.com>
ext Dotan Barak wrote:
> Hi.
>
> 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.
--
Kristian
next prev parent reply other threads:[~2009-06-15 12:08 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 [this message]
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
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=4A363741.9030604@nokia.com \
--to=kristian.amlie@nokia.com \
--cc=dotanba@gmail.com \
--cc=git@vger.kernel.org \
/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).