WezM.net The weblog of Wesley Moore

13Jan/100

Clone git Repo on Non-Standard Port

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. git clone hostname:path/to/repo. The solution is to be a little more specific:

git clone ssh://localhost:2222/~username/path/to/repo
Tagged as: , , , , No Comments
   

Recent Comments

Categories

Links

Archives

Tags

adaptive atom awk bash benchmark books cake consolas core-audio debian decoder delivery expand feed font fonts git glob gripe installer iPhone ipod Linux mad melbourne microsoft mp3 mpg123 music package pocket-reference rss ruby script sed shell smoothing snow-leopard textmate title tux UNIX uri-scheme variable virtualbox

Meta

Contact