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

getting pull and push URLs for the current branch

From
MNMichal Novotny <clime@redhat.com>
Date
Apr 8, 2018, 10:15 UTC
Message-ID
<CANT8FXS_vsXb5oyma+d7fgEaYBqFYjM2N=S6O6hksObHhN8gWw@mail.gmail.com>
Hello,

is there a way to get remote url for the current branch? That is the url that will be used when I call `git pull`. It doesn't seem to be a particularly easy task.

Thank you! clime

Next: Ævar Arnfjörð Bjarmason
Message 1 of 2 in “getting pull and push URLs for the current branch”
  1. Michal NovotnyApr 8, 2018
  2. Ævar Arnfjörð BjarmasonApr 8, 2018

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.