2016-12-30 07:02:03 +00:00
|
|
|
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 it's necessary to
|
|
|
|
specify the port, which doesn't work with the conventional clone syntax.
|
2010-03-11 20:30:27 +00:00
|
|
|
|
2016-12-30 07:02:03 +00:00
|
|
|
E.g. `git clone hostname:path/to/repo`. The solution is to be a little more
|
|
|
|
specific:
|
2010-03-11 20:30:27 +00:00
|
|
|
|
2010-03-28 20:46:20 +00:00
|
|
|
git clone ssh://localhost:2222/~username/path/to/repo
|