{"thread":{"id":"64800","subject":"Documentation problem: new syntax for git config --get-urlmatch","startedAt":"2026-01-14T10:21:43Z","lastAt":"2026-01-14T14:33:08Z","messageCount":2,"participants":["M Hickford","Shreyansh Paliwal"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"533812","messageId":"CAGJzqs=0Zr2iqsTUZdjdwpbtaS7kuBOf=E_XT=vbdfyNTKkjNQ@mail.gmail.com","threadId":"64800","inReplyTo":null,"subject":"Documentation problem: new syntax for git config --get-urlmatch","fromName":"M Hickford","fromEmail":"mirth.hickford@gmail.com","sentAt":"2026-01-14T10:21:04Z","receivedAt":"2026-01-14T10:21:43Z","isPatch":false,"sender":{"key":"mirth.hickford@gmail.com","avatar":"https://avatars.githubusercontent.com/u/105314?v=4"},"body":"Hi. What's the new syntax for `git config --get-urlmatch` ?\n\nDocs Documentation/git-config.adoc suggests:\n\n    --get-urlmatch <name> <URL>\n    Replaced by git config get --all --show-names --url=<URL> <name>\n\nBut when I tried this I got error:\n\n    fatal: --url= cannot be used with --all, --regexp or --value\n\nAny ideas?\n"},{"id":"533828","messageId":"20260114143238.536312-1-shreyanshpaliwalcmsmn@gmail.com","threadId":"64800","inReplyTo":"CAGJzqs=0Zr2iqsTUZdjdwpbtaS7kuBOf=E_XT=vbdfyNTKkjNQ@mail.gmail.com","subject":"Re: Documentation problem: new syntax for git config --get-urlmatch","fromName":"Shreyansh Paliwal","fromEmail":"shreyanshpaliwalcmsmn@gmail.com","sentAt":"2026-01-14T14:32:05Z","receivedAt":"2026-01-14T14:33:08Z","isPatch":false,"sender":{"key":"shreyanshpaliwalcmsmn@gmail.com","avatar":"https://avatars.githubusercontent.com/u/152720574?v=4"},"body":"> Hi. What's the new syntax for `git config --get-urlmatch` ?\n> \n> Docs Documentation/git-config.adoc suggests:\n> \n>     --get-urlmatch <name> <URL>\n>     Replaced by git config get --all --show-names --url=<URL> <name>\n> \n> But when I tried this I got error:\n> \n>     fatal: --url= cannot be used with --all, --regexp or --value\n> \n> Any ideas?\n\nHi,\n\nThe doc might have not been updated because, there is an explicit check\nin the code which prevents the use of --url and --all together. \n\n--url gives you the best match, to use it try,\n\n    git config get --show-names --url=<name> <URL>\n\nIf you need to see all the instances, you can use --all and --regexp\ndirectly without --url like,\n\n    git config get --all --show-names --regexp <name>\n\nLet me know if that works out.\n\nBest,\nShreyansh\n"}]}