mirror of
https://codeberg.org/Codeberg/Documentation.git
synced 2026-06-16 05:13:54 -07:00
Correct SSH URL examples to avoid confusion. Codeberg supports two different SSH URL formats with different delimiters (`:` vs `/`), but the current documentation mixes them, which can lead to misconfigurations - especially when using pattern-based Git configurations such as `includeIf "hasconfig:remote.*.url:` There are two valid SSH URL formats when accessing Codeberg repositories: 1. SCP-like syntax (colon delimiter) ```bash git@codeberg.org:<user>/<repo>.git ``` 2. Full SSH URL syntax (slash delimiter) ```bash ssh://git@codeberg.org/<user>/<repo>.git ``` Git treats these formats differently, so inconsistent examples in documentation can cause tools or config conditions to fail. In my case, `includeIf "hasconfig:remote.*.url:"` did not match correctly because the documented format did not reflect the proper SSH URL structure. Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/716 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Sepperlot <sepperlot@noreply.codeberg.org> Co-committed-by: Sepperlot <sepperlot@noreply.codeberg.org> |
||
|---|---|---|
| .. | ||
| 2fa.md | ||
| gpg-key.md | ||
| index.md | ||
| ssh-fingerprint.md | ||
| ssh-key.md | ||