Performing a git pull in pure PHP

房东的猫 提交于 2019-12-10 02:20:57

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/6994773/performing-a-git-pull-in-pure-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!