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