
Git
大事龙
这个作者很懒,什么都没留下…
展开
-
Git 使用遇到的各种问题
1、执行 git push orgin master 提示error: src refspec master does not match any.error: failed to push some refs to 'http://localhost:8080/sample.git'原因:由于提交了空项目,导致报错原创 2017-02-18 09:32:22 · 697 阅读 · 0 评论 -
Git 通过源码编译安装 2.12.2 遇到的问题及解决
Git 源码:https://github.com/git/git/releaseswget https://github.com/git/git/archive/v2.12.2.tar.gz错误:Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/pe原创 2017-04-11 10:13:44 · 4654 阅读 · 0 评论 -
动手开发一个简易的 PHP for Git Server 第二章
router.phpclass Router{ public $patterns = []; public function get($pattern, $callback) { $this->patterns[] = ['GET', $pattern, $callback]; } public function post($pattern, $原创 2017-09-11 17:53:39 · 492 阅读 · 0 评论 -
动手开发一个简易的 PHP for Git Server 第三章
app.phpclass App{ public $gitRoot; public function init() { echo Git::init($_POST['repo_name']); } public function getInfoRefs() { $service = trim($_GET['service'原创 2017-09-11 17:54:17 · 508 阅读 · 0 评论 -
动手开发一个简易的 PHP for Git Server 第四章
git.phpclass Git{ public static function init($name) { $cmd = "git init --bare {$name}.git"; return self::procExec($cmd, $input); } public static function getInfoRefs($serv原创 2017-09-11 17:55:05 · 663 阅读 · 0 评论 -
动手开发一个简易的 PHP for Git Server 第一章
事情的前因后果,这里不再讲述,直接切入主题进行项目开发,谨以此献给喜欢研究 GIT 的小伙伴项目结构:+ router.php // 路由文件+ app.php // 应用文件+ git.php // Git 操作核心文件+ index.php // 入口文件接下来,将用倒叙的方式,对 git server 进行展开,首先,看一下 index.php$router = new Router;原创 2017-09-11 17:51:59 · 558 阅读 · 0 评论