Categories
Tech

Clone Git Repo using SSH on a non-standard port

This command allows you to clone a git repo onto your local machine from a remote repository using ssh on a non-standard port (standard ssh port: 22). The example provided uses the non-standard port of 8888.

git clone ssh://username@remote_repo_host.com:8888/path/to/repo/from/root