Skip to main content
QUIETLYTIC
Developer

Git URL Parser

Break a git remote URL into protocol, host, owner and repository.

Local · nothing leaves this browser Waiting for a git remote URL
Esc Clear
Parsed

Paste a remote URL on the left.

How it works

`git remote -v` prints one of four shapes depending on how a repository was cloned: an HTTPS URL, the SCP-like shorthand user@host:owner/repo.git, an explicit ssh:// URL, or the largely-retired git:// protocol. This reads whichever one you paste and reports host, owner and repository — useful for scripting against a remote without hand-parsing four different URL shapes.

The SCP-like shorthand isn't a URL

git@github.com:owner/repo.git has no scheme and the colon before the path is not a port separator — it is git's own historical shorthand for an SSH connection, inherited from `scp`'s own syntax. A generic URL parser rejects it outright; this checks for that shape first.

Example

Both https://github.com/anthropics/claude-code.git and git@github.com:anthropics/claude-code.git parse to the same owner (anthropics) and repository (claude-code) — same remote, different transport.

Frequently asked questions

Why does a generic URL parser reject git@github.com:owner/repo.git?

Because it has no scheme, and the colon before the path is not a port separator — it's git's own SCP-like shorthand for an SSH connection, inherited from scp's own syntax. This checks for that shape specifically before falling back to standard URL parsing.

Does it verify the remote actually exists?

No — this only takes the URL apart as a string. No DNS lookup and no network request happen, so a syntactically valid URL to a repository that was deleted yesterday parses identically to one that is live.

Related tools

From the intelligence desk