Gerrit lfs安装及配置
最佳答案 问答题库708位专家为你答疑解惑
Gerrit版本:3.1.4
lfs下载:Zuul
Gerrit CI界面已经没有3.1.4对应版本的lfs.jar了,需要从上面的页面下载。
一、安装配置lfs
将上面下载的lfs.jar放到$GERRIT_SITE/plugins目录。
修改配置文件:$GERRIT_SITE/etc/gerrit.config
增加如下配置
[lfs]plugin = lfs
添加配置文件:$GERRIT_SITE/etc/lfs.config
[storage]backend = fsdirectory = /usr/local/gerritlfs <= Default: $GERRIT_SITE/data/lfs
开启lfs:
git clone https://USER@GERRIT-SERVER/a/All-Projects
git fetch origin refs/meta/config
git checkout FETCH_HEAD
vi lfs.config[lfs "^.*"]enabled = truemaxObjectSize = 50mgit add .git commit -m "enable lfs"git push origin HEAD:refs/meta/config
重启gerrit服务
二、测试lfs
当我用ssh测试的时候报错:
warning: Authentication error: Authentication required: Not authorized to perform operation verify lock on repository test/test
batch response: Authentication required: Not authorized to perform operation upload on repository test/test
error: failed to push some refs to 'ssh://xx.xx.xx.xx:29418/test/test'
网上google了一下发现把git lfs版本降低就ok了。
git lfs的安装:Git Large File Storage | Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.
lfs推送命令:
git lfs track filename
git add --all
git commit -m 'add file'
git push
99%的人还看了
相似问题
- flink1.13.6版本的应用程序(maven版)
- 技术分享| gcc版本升级到5.2
- 基于 Glibc 版本升级的 DolphinDB 数据查询性能优化实践
- 解决requests 2.28.x版本SSL错误:证书验证失败
- UE5和UE4版本更新重大改变汇总。
- Docker build报错总结,版本过新大避雷!
- K8S1.23.5部署(此前1.17版本步骤囊括)及问题记录
- Mongodb3.4升级高版本mongoTemplate.executeCommand报错The cursor option is required
- onnx模型转换opset版本和固定动态输入尺寸
- centos安装指定版本docker
猜你感兴趣
版权申明
本文"Gerrit lfs安装及配置":http://eshow365.cn/6-37236-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!