加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

在纯PHP中检出git存储库

发布时间:2020-12-13 13:12:18 所属栏目:PHP教程 来源:网络整理
导读:我需要在纯 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),但似乎没有这样的
我需要在纯 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,并且在撰写本文时处于测试阶段.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读