Skip to content

Commit 871955c

Browse files
committed
Merge branch 'dz/credential-doc-url-matching-rules' into maint
Doc update. * dz/credential-doc-url-matching-rules: doc: clarify gitcredentials path component matching
2 parents 75266b4 + 4ba3c9b commit 871955c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/gitcredentials.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ compares hostnames exactly, without considering whether two hosts are part of
133133
the same domain. Likewise, a config entry for `http://example.com` would not
134134
match: Git compares the protocols exactly.
135135

136+
If the "pattern" URL does include a path component, then this too must match
137+
exactly: the context `https://example.com/bar/baz.git` will match a config
138+
entry for `https://example.com/bar/baz.git` (in addition to matching the config
139+
entry for `https://example.com`) but will not match a config entry for
140+
`https://example.com/bar`.
141+
136142

137143
CONFIGURATION OPTIONS
138144
---------------------

0 commit comments

Comments
 (0)