GIT-URL-PARSE(1) Git Manual GIT-URL-PARSE(1) (NAME) git-url-parse - (URL) (SYNOPSIS) git url-parse [-c ] [--] ... (DESCRIPTION) URL . scp [user@]host:[path] . URL . URL (scheme) . (OPTIONS) -c , --component URL . : scheme, user, password, host, port, path. (OUTPUT) --component URL URL . URL ( ) . --component . URL . (EXAMPLES) o (host): $ git url-parse --component host https://example.com/user/repo example.com o (path): $ git url-parse --component path https://example.com/user/repo /user/repo $ git url-parse --component path example.com:~user/repo ~user/repo $ git url-parse --component path example.com:user/repo /user/repo o URL : $ git url-parse https://example.com/user/repo example.com:~user/repo (SEE ALSO) git-clone(1), git-fetch(1), git-config(1) GIT git(1) Git 2.55.0 2026-06-29 GIT-URL-PARSE(1)