]> git.ipfire.org Git - thirdparty/git.git/commit
config: document remote.*.url/pushurl interaction
authorJeff King <peff@peff.net>
Fri, 14 Jun 2024 10:30:05 +0000 (06:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2024 16:34:38 +0000 (09:34 -0700)
commitbd1b88dc7aedb44561559e88cde0dd7bad78e2ae
tree0c35b67b8bff8127826bcfa76eb66635939fd0c9
parentb68118d2e85eef7aa993ef8e944e53b5be665160
config: document remote.*.url/pushurl interaction

The documentation for these keys gives a very terse definition and
points you to the fetch/push manpages. But from reading those pages it
was not at all obvious to me that:

  - these are keys that can be defined multiple times with meaningful
    behavior (especially remote.*.url)

  - the way that pushurl overrides url (the git-push page does mention
    that "pushurl defaults to url", but it is not immediately clear what
    a multi-valued url would do in that situation).

Let's try to summarize the current behavior.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/remote.txt