标签: linux git ssh
我已将生产服务器中的所有文件复制到本地存储库中。我想在生产服务器(Linux)上设置Git,这样当我推送更改时,它们会自动与服务器同步。
不幸的是,我们的托管服务不允许我们使用SSH访问。是否可以在没有SSH访问的情况下在服务器上安装和设置Git? (我可以使用shell_exec()作为解决方法在php脚本中运行命令。)
答案 0 :(得分:1)
以下是一些热门答案的密切线程:
How to make a “git push” update files on your web host?
<强> Pushing from GitHub to a Web Server 强>
<强> Private git repository over http 强>
答案 1 :(得分:0)
您可以使用http,https或git协议代替ssh。您可以找到更多信息here