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

Re: Adding push configuration to .git/config

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 30, 2007, 00:37 UTC
Message-ID
<finm18$9rk$2@ger.gmane.org>
In-Reply-To
<7v1wa8vfee.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
Show 17 quoted lines
> IIRC, there was a suggestion to enhance remote.$name configuration in
> this way instead, so that you can use different URL for fetching and
> pushing:
> 
>         [branch "foo"]
>         remote = "there"
>         merge = refs/heads/master
> 
>         [remote "there"]
>         url = git://git.there.xz/repo.git
>         push_url = git.there.xz:repo.git
>         push_url = git.there.xz:backup.git
>         fetch = refs/heads/*:refs/remotes/there/*
> 
> I further vaguely recall that the comments on the alternative were
> positive (it might have been you who responded, or somebody else, I do
> not remember).

If I remember correctly one of the suggestions was to allow for multiple URLs, and for fetch use _first_ one that responds, for push use _all_ that are _possible_ to push to. Or at least support multiple url for push; this way you would have to configure separate remote for fetch and for push, but you would have to push only once to push to all repos.

But push_url, or pushURL seems like better idea, IMHO.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C Hamano
Message 16 of 16 in “Adding push configuration to .git/config”
  1. Nico -telmich- SchotteliusNov 21, 2007
  2. Steffen ProhaskaNov 21, 2007
  3. Junio C HamanoNov 22, 2007
  4. Steffen ProhaskaNov 22, 2007
  5. Andreas EricssonNov 22, 2007
  6. Junio C HamanoNov 22, 2007
  7. Junio C HamanoNov 22, 2007
  8. Steffen ProhaskaNov 22, 2007
  9. Johannes SchindelinNov 22, 2007
  10. Junio C HamanoNov 22, 2007
  11. Andreas EricssonNov 22, 2007
  12. Steffen ProhaskaNov 22, 2007
  13. Nico -telmich- SchotteliusNov 28, 2007
  14. Johannes SchindelinNov 28, 2007
  15. Junio C HamanoNov 29, 2007
  16. Jakub NarebskiNov 30, 2007

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.