forked from wezm/wezm.net
7 lines
No EOL
394 B
HTML
7 lines
No EOL
394 B
HTML
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:
|
|
|
|
<pre>
|
|
git clone ssh://localhost:2222/~username/path/to/repo
|
|
</pre> |