在纯PHP中执行git pull [英] Performing a git pull in pure PHP
问题描述
我想知道是否有人知道库或如何使用纯PHP执行获取拉取请求,没有在服务器上安装 git。
首先,这甚至有可能吗?我已经看到了奇怪的类,但他们似乎无法执行pull请求。
我猜想替代方案会捆绑某些形式的精简版与我的脚本混帐。这是可能的吗?
我真的很茫然,所以任何帮助或建议都将不胜感激。
感谢。
我刚刚意识到您可以使用SVN从GitHub请求存储库。
和 SVN似乎受PHP支持。
所以我会使用SVN,它应该这样做技巧。我希望这可以帮助别人解决Google搜索几个小时的麻烦。给SVN + GitHub一个去。
I was wondering if anyone knows of a library or how to perform a get pull request with pure PHP, without git being installed on the server.
First of all, is this even possible? I have seen the odd class, but they don't seem to be able to perform pull requests.
I guess an alternative would be bundling some form of stripped down version of git with my script. Would that be possible?
I am really at a loss here so any help or suggestions would be much appreciated.
Thanks.
I have just realised that you can use SVN to request a repository from GitHub.
And SVN seems supported by PHP.
So I will use SVN, it should do the trick.
I hope this has saved someone else the trouble of Googling for hours. Give SVN + GitHub a go.
这篇关于在纯PHP中执行git pull的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!