git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How can i find the origin of a branch?

From
KAKristian Amlie <kristian.amlie@nokia.com>
Date
Jun 15, 2009, 11:57 UTC
Message-ID
<4A363741.9030604@nokia.com>
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

Previous: Dotan BarakNext: Dotan Barak
Message 2 of 7 in “How can i find the origin of a branch?”
  1. Dotan BarakJun 15, 2009
  2. Kristian AmlieJun 15, 2009
  3. Dotan BarakJun 15, 2009
  4. Dotan BarakJun 15, 2009
  5. Alex RiesenJun 15, 2009
  6. Kristian AmlieJun 15, 2009
  7. Alex RiesenJun 15, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.