threads / discuss / 64800

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

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

## tl;dr

2 messages between Jan 14, 2026 and Jan 14, 2026.

replies: 1people: 2as markdown or json

M Hickford· Jan 14, 2026, 10:21 UTC · lore
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?
Shreyansh Paliwal· Jan 14, 2026, 14:32 UTC · re: M Hickford · lore

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

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

← back to recent threads