在纯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,并且在撰写本文时处于测试阶段.

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...