没有SSH的Git拉?

时间:2013-08-07 15:25:39

标签: git ssh bitbucket

我正在使用MochaHost作为托管,它不包括SSH访问(令人难以置信)。 问题是我现在在大多数项目中使用Git,我需要在托管中部署它们。

技术支持表示无法通过它们获得SSH访问权限。 改变托管公司现在不是一个选择,因为我还有2。5年的时间已经付款。

在没有SSH访问的情况下克隆/拉取Git仓库有什么方法或解决方法吗? FTP是一个选项,但它错过了Git的全部观点。

1 个答案:

答案 0 :(得分:4)

您是否阅读过Git url options in the official Linux Kernel Git documentation?除了ssh和git之外,你可以使用许多不同的协议:

  

Git支持ssh,git,http和https协议(此外,ftp和ftps可用于获取,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/

  •