gk repo resolve
Resolve a git remote URL to its canonical repository identity
Synopsis
Resolve a git remote URL to the provider’s canonical repository identity, following provider-side renames.
The command fails closed: when a repository cannot be resolved (missing, inaccessible, ambiguous, or unsupported provider) it returns a null repository with a machine-readable status, never a guessed sibling.
Resolution is implemented for github and githubEnterprise. Other git providers return status “unsupported_provider”.
Examples: gk repo resolve github –remote-url https://github.com/gitkraken/gkcli.git –json gk repo resolve github –remote-url git@github.com:gitkraken/gkcli.git –json gk repo resolve githubEnterprise –host github.example.com –remote-url git@github.example.com:org/repo.git –json
gk repo resolve <provider> [flags]
Examples
repo resolve <provider> --remote-url <url> --json
Options
-h, --help help for resolve
--host string Enterprise/self-hosted host override (e.g. github.example.com)
--json Output as JSON
--remote-url string Git remote URL to resolve (https, ssh, or scp-like git@host:owner/repo)
Options inherited from parent commands
--no-telemetry Disable telemetry (OTel spans, Sentry) for this invocation
--output string Output format: text or json (default "text")
--session string (Optional) Isolate auth and cache under a named session
SEE ALSO
- gk repo - Work with repositories