83374

开源版本的git使用

回帖
回帖数 3
阅读数 1223
发表时间 2014-07-02 09:20:28
🎉
纯真的草稿本楼主

在windows平台上如果使用msysgit,module.php中的cd $this->repoRoot; $this->client 需要改为$cmd = "$this->client -C $this->repoRoot,否则执行同步时会出出错。


例如:

        if($fromRevision)
        {
            $cmd = "cd $this->repoRoot; $this->client log --stat $fromRevision..HEAD --pretty=format:%an*_*%cd*_*%H*_*%s";
        }


改为:

        if($fromRevision)
        {
            $cmd = "$this->client -C $this->repoRoot log --stat $fromRevision..HEAD --pretty=format:%an*_*%cd*_*%H*_*%s";
        }

3个回复
🍟
春哥沙发
-C 参数是什么含义?
2014-07-02 09:32:31 王春生 回帖
🎉
纯真的草稿本板凳
-C指定版本库路径
2014-07-02 10:10:01 纯真的草稿本 回帖
学习了。谢谢。
2014-07-02 11:21:11 王春生 回帖
联系我们
联系人
丁芝/高级客户经理
电话(微信)
17663906485
QQ号码
1481227768
联系邮箱
dingzhi@chandao.com
相关帖子
返回顶部
客服头像
丁芝
高级客户经理
客服微信
17663906485
1481227768
统一服务热线 4006-8899-23
我要提问提问有任何问题,您都可以在这里提问。问题反馈反馈点击这里,让我们聆听您的建议与反馈。