在纯PHP中检出git存储库

前端之家收集整理的这篇文章主要介绍了在纯PHP中检出git存储库前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我需要在纯 PHP中使用git checkout.
我已经尝试了这个( 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,并且在撰写本文时处于测试阶段.

猜你在找的PHP相关文章