Skip to content

readGitRemote

readGitRemote(cwd, options?): Promise<GitRemote | undefined>

Defined in: remote.ts:90

The parsed URL of a repository’s remote (git remote get-url <remote>), or undefined when cwd isn’t a repository, has no such remote, git isn’t installed, or the URL isn’t one parseGitRemoteUrl understands.

string

ReadGitRemoteOptions = {}

Promise<GitRemote | undefined>