fn sanitize_git_url(url: &str) -> Option<String>Expand description
Sanitizes a git remote URL by removing credentials and normalizing format.
§Security
This function strips any embedded credentials from URLs:
https://user:password@host/path->host/pathgit@host:org/repo.git->host/org/repo
§Supported Formats
| Format | Example | Result |
|---|---|---|
| HTTPS | https://github.com/org/repo.git | github.com/org/repo |
| HTTPS with creds | https://user:pass@github.com/org/repo | github.com/org/repo |
| SSH | git@github.com:org/repo.git | github.com/org/repo |
| Git protocol | git://github.com/org/repo.git | github.com/org/repo |