我使用MochaHost作为主机,它不包括SSH访问(难以置信)。问题是,我现在大多数项目都在使用Git,我需要在主机上部署它们。
技术支持说他们没有办法获得SSH访问权限。更换托管公司现在不是一个选择,因为我还有两年半的时间,他们已经支付了。
有没有办法或者变通方法在没有SSH访问的情况下克隆/拉取Git代码库?FTP是一种选择,但它忽略了Git的全部要点。
发布于 2013-08-07 23:29:01
你读过Git url options in the official Linux Kernel Git documentation吗?除了使用Git的ssh之外,您还可以使用许多不同的协议:
git支持ssh、Git、http和https协议(另外,ftp和ftp可以用于抓取,rsync可以用于抓取和推送,但这些都是低效的,并且已被弃用;请不要使用它们)。
以下语法可以与它们一起使用:
ssh://[user@]host.xz[:port]/path/to/repo.git/git://host.xz[:port]/path/to/repo.git/http[s]://host.xz[:port]/path/to/repo.git/ftp[s]://host.xz[:port]/path/to/repo.git/rsync://host.xz/path/to/repo.git/https://stackoverflow.com/questions/18107431
复制相似问题