随笔分类 -  Gitlab&Git

摘要:安装 curl -LsSf https://astral.sh/uv/install.sh | sh 加到系统命令 cp /root/.local/bin/uv /usr/bin/ 阅读全文
posted @ 2025-07-28 16:31 minseo 阅读(29) 评论(0) 推荐(0)
摘要:参考 https://juejin.cn/post/7071910670056292389 环境查看 CentOS7 Git版本最高为1.18需要升级为24版本 系统环境 # cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) # 阅读全文
posted @ 2025-05-16 10:24 minseo 阅读(131) 评论(0) 推荐(0)
摘要:故障现象 使用浏览器登录报错 422: The change you requested was rejected Make sure you have access to the thing you tried to change. Please contact your GitLab admin 阅读全文
posted @ 2025-04-05 10:59 minseo 阅读(662) 评论(0) 推荐(0)
摘要:环境查看 系统环境 软件环境 报错信息 配置gitlbab库之后安装gitlab-ce报错如下 # yum install gitlab-ce-16.7.10 # 错误:为仓库 'gitlab_gitlab-ce-source' 下载元数据失败 : repomd.xml GPG signature 阅读全文
posted @ 2025-01-21 09:15 minseo 阅读(162) 评论(0) 推荐(0)
摘要:环境查看 系统环境 # cat /etc/redhat-release Rocky Linux release 9.4 (Blue Onyx) [root@RockyEs01003081 ~]# uname -a Linux RockyEs01003081 5.14.0-427.35.1.el9_4 阅读全文
posted @ 2025-01-16 10:35 minseo 阅读(134) 评论(0) 推荐(0)
摘要:搭建Runner参考: https://www.cnblogs.com/minseo/p/18472436 需求: 未打标签的.gitlab-ci使用默认runner 打标签的.gitlab-ci使用指定的runner 环境查看 系统环境 # cat /etc/redhat-release Rock 阅读全文
posted @ 2024-12-20 11:21 minseo 阅读(284) 评论(0) 推荐(0)
摘要:故障现象 git pull报错 $ git push Counting objects: 40, done. Delta compression using up to 32 threads. Compressing objects: 100% (38/38), done. fatal: proto 阅读全文
posted @ 2024-12-15 10:17 minseo 阅读(530) 评论(0) 推荐(0)
摘要:Gitlab页面默认为英文显示 点击右上角头像设置 往下翻到Language设置为中文 阅读全文
posted @ 2024-11-06 11:21 minseo 阅读(4961) 评论(0) 推荐(1)
摘要:Gitlab使用访问令牌访问 创建访问令牌 在项目或者群组创建访问令牌 可以单独都项目添加访问令牌也可以针对群组添加访问令牌对整个群组有效 设置-访问令牌-添加新令牌 显示访问令牌 访问令牌只显示一次再次无法显示需要重新创建 2. 使用访问令牌访问 访问地址如下 # https://oauth2:< 阅读全文
posted @ 2024-10-23 10:41 minseo 阅读(2994) 评论(0) 推荐(0)
摘要:Gitlab需要从一个命名空间转移至另外一个命名空间 打开项目 设置-通用-高级 选择需要转移的命名空间 输入项目名称转移 使用管理员登陆操作选择命名空间可能显示不全,使用有该项目权限的普通用户登录设置即可 阅读全文
posted @ 2024-10-22 14:37 minseo 阅读(85) 评论(0) 推荐(0)
摘要:环境查看 系统环境 # cat /etc/redhat-release Rocky Linux release 9.4 (Blue Onyx) 软件环境 # git version git version 2.43.5 安装gitlab-runner 安装runner 在客户端安装 点击此处获取安装 阅读全文
posted @ 2024-10-17 15:41 minseo 阅读(203) 评论(0) 推荐(0)
摘要:参考 https://blog.csdn.net/fangxiananvhai/article/details/102659875 故障现象 克隆代码时报503错误 'git clone' has been updated in upstream Git to have comparable spe 阅读全文
posted @ 2024-08-22 09:13 minseo 阅读(334) 评论(0) 推荐(0)
摘要:系统环境和软件环境查看 系统环境 # cat /etc/redhat-release CentOS Stream release 9 # uname -a Linux CentOSStream9Git215 5.14.0-381.el9.x86_64 #1 SMP PREEMPT_DYNAMIC M 阅读全文
posted @ 2024-08-11 11:20 minseo 阅读(998) 评论(0) 推荐(0)
摘要:参考 https://cloud.tencent.com/developer/article/1010589 LFS介绍 Git 大文件存储(Large File Storage,简称LFS)目的是更好地把大型二进制文件,比如音频文件、数据集、图像和视频等集成到 Git 的工作流中。我们知道,Git 阅读全文
posted @ 2024-08-10 12:18 minseo 阅读(1595) 评论(0) 推荐(0)
摘要:Gitlab删除分支 取消保护 如果分支受保护则需要先取消保护 设置-仓库-受保护分支-取消保护 2. 删除分支 代码-分支-删除分支 阅读全文
posted @ 2024-07-19 11:27 minseo 阅读(535) 评论(0) 推荐(1)
摘要:Gitlab上传超过1G文件报错 git push warning: redirecting to http://192.168.3.215/ai/invalid_detection_model.git / Counting objects: 3, done. Delta compression u 阅读全文
posted @ 2024-07-10 17:20 minseo 阅读(507) 评论(0) 推荐(0)
摘要:参考 https://blog.csdn.net/qq_41832237/article/details/103474283 开源github项目想要同步到本地gitlab 将github项目克隆至本地 项目需要是开源的,用户有权限clone # git clone https://github.c 阅读全文
posted @ 2024-06-24 10:36 minseo 阅读(318) 评论(0) 推荐(0)
摘要:从github拉取公开代码使用git pull即可 但是如果想要push则会报错 clone代码 本次使用个人测试的公开代码 因为是公开代码无需验证即可clone # git clone https://github.com/liuyueming/salt.git 修改代码提交即使输入的用户名和密码 阅读全文
posted @ 2024-06-21 17:29 minseo 阅读(50) 评论(0) 推荐(0)
摘要:gitlab开启了lfs后在本地局域网下载lfs正常 但是在映射了Nginx的的外网下载时会在下载lsf大文件时定向到内网地址导致无法下载 报错信息 报错信息如下 LFS: Get "http://192.168.3.215/xxx/classify_bert_edu_psy.git/gitlab- 阅读全文
posted @ 2024-06-20 15:38 minseo 阅读(203) 评论(0) 推荐(0)
摘要:使用git push出现错误提示 Out of memory, malloc failed (tried to allocate 341336996 bytes) 原因分析: 一次性push的文件太多,主机系统内存不够 解决方法: 增加虚拟机内存重新push 本次从8G增加到16G内存 阅读全文
posted @ 2024-05-10 16:35 minseo 阅读(197) 评论(0) 推荐(0)