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

GitLab: You cannot create a branch with a SHA-1 or SHA-256 branch name

最近在迁移git库,把代码从gerrit迁移到gitlab,有几个库报错如下:

GitLab: You cannot create a branch with a SHA-1 or SHA-256 branch name

 ! [remote rejected] refs/users/73/373/edit-95276/1 -> refs/users/73/373/edit-95276/1 (pre-receive hook declined)

warning: refname '3cea05a895248375c125b632d0d78f2d9bc5023d' is ambiguous.
Git normally never creates a ref that ends with 40 hex characters
because it will be ignored when you just specify 40-hex. These refs
may be created by mistake. For example,
git checkout -b $br $(git rev-parse ...)
where "$br" is somehow empty and a 40-hex ref is created. Please
examine these refs and maybe delete them. Turn this message off by
running "git config advice.objectNameWarning false"
Counting objects: 100159, done.
Delta compression using up to 40 threads.
Compressing objects: 100% (39493/39493), done.
Writing objects: 100% (100159/100159), 365.46 MiB | 62.86 MiB/s, done.
Total 100159 (delta 42190), reused 100159 (delta 42190)
remote: Resolving deltas: 100% (42190/42190), done.
remote: GitLab: You cannot create a branch with a SHA-1 or SHA-256 branch name.
To ssh://192.168.4.4:8082/webwebweb
 ! [remote rejected] refs/cache-automerge/5a/f6eb693cae5b1f837aee8bdb7a24d23bc9439b -> refs/cache-automerge/5a/f6eb693cae5b1f837aee8bdb7a24d23bc9439b (pre-receive hook declined)
 ! [remote rejected] refs/users/73/373/edit-95276/1 -> refs/users/73/373/edit-95276/1 (pre-receive hook declined)
error: failed to push some refs to 'ssh://192.168.4.4:8082/webwebweb'

解决方法:

分支或者tag里面有那种超过40个字符的,导致迁移失败。把对应的分支或者tag删除再重新提交即可。


http://www.kler.cn/a/416937.html

相关文章:

  • ospf协议(动态路由协议)
  • C++:异常
  • Windows加固脚本
  • Python基于滑动窗口CNN损伤梁桥数据、故宫城墙图像数据分类可视化|数据分享
  • 【Java基础面试题001】Java中序列化和反序列化是什么?
  • 丹摩|丹摩智算平台使用教学指南
  • java基础概念43:Lambda表达式
  • [Ubuntu] linux之Ubuntu18.04的下载及在虚拟机中详细安装过程(附有下载链接)
  • 计算机基础 原码反码补码问题
  • 大数据新视界 -- 大数据大厂之 Hive 数据质量监控:实时监测异常数据(下)(18/ 30)
  • 暴雨发布首款兆芯KX-7000信创笔记本
  • Android 12系统源码_RRO机制(一)Runtime Resource Overlay机制实践
  • RFID资产管理系统的应用与未来发展
  • 初学git报错处理 | 从IDEA远程拉取、创建分支中“clone failed”“couldn‘t checkout”
  • otter 高可用策略
  • 聚云科技×亚马逊云科技:打通生成式AI落地最后一公里
  • javaScript数据类型存储
  • 基于Java Springboot个人记账之财来财往微信小程序
  • django开发中html继承模板样式
  • Vue程序调试和排错技巧
  • Oracle 深入学习 Part 10: Managing Undo Data(管理Undo数据)
  • Java 上机实践9(常用实用类)
  • .net6,C#语法excel、zip文件下载
  • 无人机飞手人才培养技术方案详解
  • 使用Python编写Windows系统服务管理脚本,主要用于管理mysql、postgresql等服务
  • R包开发时Imports和Suggests区分