Git

Remote URL Parser & Converter

Break a remote URL into its parts and convert between the HTTPS, ssh:// and SCP forms.

Remote URL

HTTPS, ssh://, the git@host:path SCP form, or a local path.

Components
scpgithub
Host
github.com
Port
User
git
Owner / group
owner
Repository
repo
Full name
owner/repo

The SCP-like form is not a URL: its colon separates the path, not a port. To use a non-default SSH port you need the ssh:// form instead.

Equivalent forms
HTTPShttps://github.com/owner/repo.git
SSH (SCP form)[email protected]:owner/repo.git
SSH (URL form)ssh://[email protected]/owner/repo.git
Webhttps://github.com/owner/repo

Switch an existing clone

git remote set-url origin [email protected]:owner/repo.git
Links
Examples