我已经尝试了这个( 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,并且在撰写本文时处于测试阶段.
原文地址:https://www.jb51.cc/php/136696.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。