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