不使用SSH进行Git拉? [英] Git pull without SSH?

查看:130
本文介绍了不使用SSH进行Git拉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm using MochaHost as hosting, which does not include SSH access (unbelievable). The problem is that I'm using Git for most of my projects now, and I need to deploy them in the hosting.

技术支持人员说无法与他们进行SSH访问. 现在我无法更改托管公司,因为我还剩下2.5年的时间了.

Tech support says there's no way to get SSH access with them. Changing the hosting company is not an option right now, since I still have 2.5 years left with them already paid.

是否有任何方法或解决方法在没有SSH访问的情况下克隆/拉动Git存储库? FTP是一个选项,但它忽略了整个Git.

Is there any way or workaround to clone/pull a Git repo without SSH access? FTP is an option, but it misses the entire point of Git.

推荐答案

您是否已阅读

Have you read the Git url options in the official Linux Kernel Git documentation? You can use a number of different protocols besides ssh with Git:

Git支持ssh,git,http和https协议(此外,ftp和ftps可以用于获取,rsync可以用于获取和推送,但是它们效率低下且已弃用;请勿使用它们).

Git supports ssh, git, http, and https protocols (in addition, ftp, and ftps can be used for fetching and rsync can be used for fetching and pushing, but these are inefficient and deprecated; do not use them).

以下语法可以与它们一起使用:

The following syntaxes may be used with them:

  • 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/

这篇关于不使用SSH进行Git拉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆