Skip to content

Function: parseGitRemote()

parseGitRemote(url): string | undefined

Parse a git remote URL (https://..., git@host:owner/repo.git, etc.) and return the repo segment, stripping any .git suffix. Returns undefined for empty or unparsable input.

string

string | undefined