1
0
Fork 0
forked from wezm/wezm.net

QA /technical/2010/01/clone-git-repo-on-non-standard-port/

This commit is contained in:
Wesley Moore 2010-03-29 07:46:20 +11:00
parent 04dfd68112
commit 14ebf11443

View file

@ -1,7 +1,5 @@
I use an SSH tunnel to access my computer at work from home. On occasion I want to clone a git repo that is on the remote server. To do so its necessary to specify the port, which doesn't work with the conventional clone syntax. I use an SSH tunnel to access my computer at work from home. On occasion I want to clone a git repo that is on the remote server. To do so its necessary to specify the port, which doesn't work with the conventional clone syntax.
E.g. <code>git clone hostname:path/to/repo</code>. The solution is to be a little more specific: E.g. `git clone hostname:path/to/repo`. The solution is to be a little more specific:
<pre> git clone ssh://localhost:2222/~username/path/to/repo
git clone ssh://localhost:2222/~username/path/to/repo
</pre>