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

Re: Documentation problem: new syntax for git config --get-urlmatch

From
Shreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com>
Date
Jan 14, 2026, 14:32 UTC
Message-ID
<20260114143238.536312-1-shreyanshpaliwalcmsmn@gmail.com>
In-Reply-To
<CAGJzqs=0Zr2iqsTUZdjdwpbtaS7kuBOf=E_XT=vbdfyNTKkjNQ@mail.gmail.com>
Show 12 quoted lines
> Hi. What's the new syntax for `git config --get-urlmatch` ?
> 
> Docs Documentation/git-config.adoc suggests:
> 
>     --get-urlmatch <name> <URL>
>     Replaced by git config get --all --show-names --url=<URL> <name>
> 
> But when I tried this I got error:
> 
>     fatal: --url= cannot be used with --all, --regexp or --value
> 
> Any ideas?
Hi,

The doc might have not been updated because, there is an explicit check in the code which prevents the use of --url and --all together.

--url gives you the best match, to use it try,
    git config get --show-names --url=<name> <URL>

If you need to see all the instances, you can use --all and --regexp directly without --url like,

    git config get --all --show-names --regexp <name>
Let me know if that works out.

Best, Shreyansh

Previous: M Hickford
Message 2 of 2 in “Documentation problem: new syntax for git config --get-urlmatch”
  1. M HickfordJan 14, 2026
  2. Shreyansh PaliwalJan 14, 2026

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.