我已经尝试了这个( http://www.phpclasses.org/package/5310-PHP-Retrieve-project-files-from-GIT-repositories.html)HTTP和SASL,但我没有真正工作.
然后我看了GLIP( https://github.com/patrikf/glip),但似乎没有这样的功能.
基本上我需要
-replicate / clone远程git存储库
PHP GIT的主要问题是,它只是不支持您在提交中可以进行的所有可能的更改.只有新文件,没有移动文件.它也无法提取文件.
/编辑:
git没有安装,我也无法安装git
> https://github.com/teqneers/PHP-Stream-Wrapper-for-Git
Git Streamwrapper for PHP is a PHP library that allows PHP code to interact with one or multiple Git repositories from within an application. The library consists of a Git repository abstraction that can be used to programatically access Git repositories and of a stream wrapper that can be hooked into the PHP stream infrastructure to allow the developer to use file and directory access functions directly on files in a Git repository. The library provides means to access status information on a Git repository,such as the log,the current repository status or commit information,as well.
它需要在机器上安装Git,并且在撰写本文时处于测试阶段.