2016-02-29 83 views
0

我有一个可通过IP +端口27003访问的Ubuntu网络服务器。
我也安装了git。
我没有domainname.tld,只是IP和端口27003,而不是80无法克隆存储库SourceTree。没有端口号的支持?

当我做git remote add origin http://[ip]:27003/mytest.git一切似乎确定。

当我想用SourceTree克隆我的存储库,并且将http://[ip]:27003/mytest.git添加到“源URL”时,SourceTree告诉我:This is not a valid source path/URL

我的网址有问题吗,SourceTree不支持端口号码还是别的吗?

+0

点击有关失败的更多信息。另外,只要执行'git remote add'就不会检查连接是否真正起作用,所以这个命令成功并不表示你的配置工作。 – Sven

回答

0

您可以在~/.ssh/config 一些事情上“这是不是一个有效的URL文本”将给添加配置SSH这样

Host yourhost 
    user youruser 
    hostname your.ip.xx.xx 
    RSAAuthentication yes 
    IdentityFile ~/.ssh/yourfile.pem 
    Port yourport 

然后添加使用它normaly

git remote add origin https://yourhost/mytest.git