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

2 messages from 2026-01-14 to 2026-01-14. Participants: M Hickford, Shreyansh Paliwal.
Thread: https://gitlist.dev/t/64800

## M Hickford, 2026-01-14 10:21

Subject: Documentation problem: new syntax for git config --get-urlmatch
Message-ID: <CAGJzqs=0Zr2iqsTUZdjdwpbtaS7kuBOf=E_XT=vbdfyNTKkjNQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAGJzqs%3D0Zr2iqsTUZdjdwpbtaS7kuBOf%3DE_XT%3DvbdfyNTKkjNQ%40mail.gmail.com

```
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, 2026-01-14 14:32

Subject: Re: Documentation problem: new syntax for git config --get-urlmatch
Message-ID: <20260114143238.536312-1-shreyanshpaliwalcmsmn@gmail.com>
URL: https://gitlist.dev/e/20260114143238.536312-1-shreyanshpaliwalcmsmn%40gmail.com
In-Reply-To: <CAGJzqs=0Zr2iqsTUZdjdwpbtaS7kuBOf=E_XT=vbdfyNTKkjNQ@mail.gmail.com>

```
> 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

```
