小程序快速建站,在建项目备案人员查询,网站什么时候备案好,学前端的三大忠告Gerrit版本#xff1a;3.1.4 lfs下载#xff1a;Zuul Gerrit CI界面已经没有3.1.4对应版本的lfs.jar了#xff0c;需要从上面的页面下载。 一、安装配置lfs
将上面下载的lfs.jar放到$GERRIT_SITE/plugins目录。
修改配置文件#xff1a;$GERRIT_SITE/etc/gerrit.config
… 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://USERGERRIT-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 lfsgit 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