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
HTTPS
https://github.com/owner/repo.gitSSH (SCP form)
[email protected]:owner/repo.gitSSH (URL form)
ssh://[email protected]/owner/repo.gitWeb
https://github.com/owner/repoSwitch an existing clone
git remote set-url origin [email protected]:owner/repo.gitLinks
Examples