简体   繁体   English

没有SSH访问权限的服务器上的Git

[英]Git on server with no SSH access

I have copied all of the files from my production server into a local repo. 我已将所有文件从生产服务器复制到本地存储库中。 I want to set up Git on the production server (Linux) so that when I push changes, they are automatically synchronized with the server. 我想在生产服务器(Linux)上设置Git,以便当我推送更改时,它们自动与服务器同步。

Unfortunately, our hosting service does not allow us SSH access. 不幸的是,我们的托管服务不允许我们进行SSH访问。 Is it possible to install and set up Git on the server without having SSH access? 是否可以在没有SSH访问权限的情况下在服务器上安装和设置Git? (I can run commands in a php script using shell_exec() as kind of a workaround). (我可以使用shell_exec()在php脚本中运行命令,作为一种解决方法)。

You could use http, https or git protocol instead of ssh. 您可以使用http,https或git协议代替ssh。 More information you can find here 您可以在这里找到更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM