当前位置: 首页 > news >正文

Gerrit lfs安装及配置

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

http://www.lryc.cn/news/224391.html

相关文章:

  • 基于表面电势的AlGaN/GaN MODFET紧凑模型
  • c语言中的fread
  • Unity游戏开发基础组件
  • 股票四倍杠杆什么意思?
  • 【hcie-cloud】【2】华为云Stack解决方案介绍、缩略语整理 【下】
  • 多无人机在线路径规划的新算法
  • 什么是运营商精准大数据?又有什么作用?
  • Adobe Photoshop 2020给证件照换底
  • 传来喜讯,优维又获奖了!!!
  • 河南开放大学与电大搜题微信公众号:携手共进,助力学习之路
  • 【3D 图像分割】基于 Pytorch 的 VNet 3D 图像分割5(训练篇)
  • 【开题报告】基于微信小程序的校园订餐平台的设计与实现
  • C++ vector 动态数组的指定元素删除
  • Python机器学习算法入门教程(第四部分)
  • Ubuntu中安装rabbitMQ
  • Langchain-Chatchat实践详解
  • python求解优化问题的几个例子
  • HP惠普暗影精灵9P OMEN 17.3英寸游戏本17-cm2000(70W98AV)原装出厂Windows11-22H2系统镜像
  • ❤ Uniapp使用Ucharts(二)(组件类型)
  • Linux Vim批量注释和自定义注释
  • 虚幻C++基础 day3
  • 第26期 | GPTSecurity周报
  • (动手学习深度学习)第7章 稠密连接网络---DenseNet
  • UART编程(寄存器)
  • 事务码增删查改表数据
  • vue开发环境搭建部署(mac版)
  • Java【算法 05】通过时间获取8位验证码(每两个小时生成一个)源码分享
  • 微服务 Spring Cloud 5,一图说透Spring Cloud微服务架构
  • conda清华源安装cuda12.1的pytorch
  • 安徽首届道医传承十八绝技发布会在合肥成功举办