Documentation/content/security
Sepperlot 29c674e528 fix: SSH repo URLs (#716)
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>
2025-12-09 15:15:02 +01:00
..
2fa.md Fix lint issues (#629) 2025-11-21 12:35:05 +01:00
gpg-key.md Reduce line length limit and format content (#623) 2025-06-14 11:38:21 +02:00
index.md Refactor and fix tables (#627) 2025-06-16 22:57:17 +02:00
ssh-fingerprint.md Lint the documentation (#626) 2025-06-14 15:39:01 +02:00
ssh-key.md fix: SSH repo URLs (#716) 2025-12-09 15:15:02 +01:00