git push 遇见的两个错误

2023-05-16

文章目录

    • more than 10000 commits, and skip-validation not set
    • prohibited by Gerrit: update for creating new commit object not permitted

more than 10000 commits, and skip-validation not set

$ git push origin roc-3.5.x
Counting objects: 236369, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (37588/37588), done.
Writing objects: 100% (236369/236369), 56.07 MiB | 3.05 MiB/s, done.
Total 236369 (delta 198538), reused 234966 (delta 198230)
remote: Resolving deltas: 100% (198538/198538)
remote: Counting objects: 283723, done
remote: Processing changes: refs: 1, done    
To ssh://*.*.*.*:20018/ROCm/ROCK-Kernel-Driver
 ! [remote rejected]           roc-3.5.x -> roc-3.5.x (more than 10000 commits, and skip-validation not set)
error: failed to push some refs to 'ssh://guolei@*.*.*.*:20018/ROCm/ROCK-Kernel-Driver'
$ git push -o skip-validation origin roc-3.5.x 
Counting objects: 236369, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (37588/37588), done.
Writing objects: 100% (236369/236369), 56.07 MiB | 2.47 MiB/s, done.
Total 236369 (delta 198537), reused 234966 (delta 198230)
remote: Resolving deltas: 100% (198537/198537)
remote: Counting objects: 283723, done
remote: Processing changes: refs: 1, done    
To ssh://10.*.*.*:20018/ROCm/ROCK-Kernel-Driver

prohibited by Gerrit: update for creating new commit object not permitted

$ git push origin --tags 
Counting objects: 153091, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (21406/21406), done.
Writing objects: 100% (153091/153091), 31.44 MiB | 2.21 MiB/s, done.
Total 153091 (delta 134196), reused 150407 (delta 131598)
remote: Resolving deltas: 100% (134196/134196)
remote: Counting objects: 210227, done
remote: Processing changes: refs: 13, done    
remote: error: internal error while processing changes
To ssh://10.*.*.*:20018/ROCm/ROCK-Kernel-Driver
 ! [remote rejected]           hipclang-3.2.0 -> hipclang-3.2.0 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.0.0 -> roc-1.0.0 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.1.0 -> roc-1.1.0 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.1.1 -> roc-1.1.1 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.2.0 -> roc-1.2.0 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.3.0 -> roc-1.3.0 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.3.1 -> roc-1.3.1 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.5.0 -> roc-1.5.0 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.5.1 -> roc-1.5.1 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.6.0 -> roc-1.6.0 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.6.1 -> roc-1.6.1 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.6.2 -> roc-1.6.2 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.6.3 -> roc-1.6.3 (prohibited by Gerrit: update for creating new commit object not permitted)
 ! [remote rejected]           roc-1.7.0 -> roc-1.7.0 (internal error)
 ! [remote rejected]           roc-1.7.1 -> roc-1.7.1 (internal error)
 ! [remote rejected]           roc-1.7.2 -> roc-1.7.2 (internal error)
 ! [remote rejected]           roc-1.8.0 -> roc-1.8.0 (internal error)
 ! [remote rejected]           roc-1.8.1 -> roc-1.8.1 (internal error)
 ! [remote rejected]           roc-1.8.2 -> roc-1.8.2 (internal error)
 ! [remote rejected]           roc-1.8.3 -> roc-1.8.3 (internal error)
 ! [remote rejected]           roc-1.9.0 -> roc-1.9.0 (internal error)
 ! [remote rejected]           roc-1.9.1 -> roc-1.9.1 (internal error)
 ! [remote rejected]           roc-1.9.2 -> roc-1.9.2 (internal error)
 ! [remote rejected]           roc-2.0.0 -> roc-2.0.0 (internal error)
 ! [remote rejected]           roc-2.1.0 -> roc-2.1.0 (internal error)
 ! [remote rejected]           roc-2.10.0 -> roc-2.10.0 (internal error)
 ! [remote rejected]           roc-2.2.0 -> roc-2.2.0 (internal error)
 ! [remote rejected]           roc-2.3.0 -> roc-2.3.0 (internal error)
 ! [remote rejected]           roc-2.4.0 -> roc-2.4.0 (internal error)
 ! [remote rejected]           roc-2.5.0 -> roc-2.5.0 (internal error)
 ! [remote rejected]           roc-2.6.0 -> roc-2.6.0 (internal error)
 ! [remote rejected]           roc-2.7.0 -> roc-2.7.0 (internal error)
 ! [remote rejected]           roc-2.8.0 -> roc-2.8.0 (internal error)
 ! [remote rejected]           roc-2.9.0 -> roc-2.9.0 (internal error)
 ! [remote rejected]           roc-3.0.0 -> roc-3.0.0 (internal error)
 ! [remote rejected]           roc-3.1.0 -> roc-3.1.0 (internal error)
 ! [remote rejected]           roc-3.3.0 -> roc-3.3.0 (internal error)
 ! [remote rejected]           rocm-3.5.0 -> rocm-3.5.0 (internal error)
error: failed to push some refs to 'ssh://guolei@10.*.*.*:20018/ROCm/ROCK-Kernel-Driver'

https://gerrit-review.googlesource.com/Documentation/error-prohibited-by-gerrit.html
参考这个页面把能加的权限都加进去了,但依旧还是提示这个错误。
偶然间灵光一闪,进行了下面这个尝试。

$ scp -p -P 29418 guolei@10.63.20.3:hooks/commit-msg .git/hooks/
commit-msg                                                           100% 1392    22.5KB/s   00:00    
$ git push origin tag roc-3.3.0
Counting objects: 1, done.
Writing objects: 100% (1/1), 173 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 1 (delta 0)
remote: Processing changes: refs: 1, done    
To ssh://10.*.*.*:20018/ROCm/ROCK-Kernel-Driver
 * [new tag]                   roc-3.3.0 -> roc-3.3.0

啊哈,搞定了。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

git push 遇见的两个错误 的相关文章

  • apt-get 无法在 ubuntu dockerfile 中工作

    我对 docker 相当陌生 正在尝试通过编写自己的镜像来学习 并且目前正在阅读 Docker 的实际操作 ISBN 1633430235 在我自己的代码和书中的示例 第 146 页 中 我想通过 dockerfile 安装 git My
  • `git Reset HEAD file` 是否也检查该文件?

    我错误地向 git 添加了一个目录 当我按照提示操作时here https stackoverflow com questions 348170 undo git add通过执行以下操作来撤消添加git reset HEAD
  • 如何克隆特定的 Git 标签

    From git clone 1 手册页 http git scm com docs git clone branch还可以在结果存储库中的该提交处获取标签并分离 HEAD 我试过 git clone branch
  • Git 将一个分支合并到所有其他分支中

    我知道这个问题已经在这里被问过 https stackoverflow com questions 2329716 merging changes from master into all branches using git https
  • 将bitbucket发布到数字海洋

    我本质上是试图使用 bitbucket 来理解 git 的概念 我一直在通过修改本地帐户和 bitbucket 帐户之间的文件来练习版本控制 事实证明这很有帮助 现在我正在尝试弄清楚如何将文件从 bitbucket 或者我猜是 GitHub
  • 带有 git Remote 的 Gem 文件在 Heroku 推送上失败

    我的 gemfile 中有以下行 gem client side validations git gt email protected cdn cgi l email protection Dakuan client side valida
  • git 排除与忽略

    I use Tower http www git tower com 用于在 Mac 中使用 Git Tower 中的设置具有创建 gitignore 的 忽略 部分 但它还有另一个名为 排除 的部分 似乎可以将排除与 git ls fil
  • 仅使用 Git grep 的文件名

    我只想查看文本中包含特定单词的不同文件 current directory git grep word 显示文件中具有匹配单词的每一行 所以我尝试了这个 current directory git grep word files with
  • `git push` -- 没有输出,什么也没有发生

    touch test git add test git commit m test git push u origin master 这奏效了 该文件已上传到存储库 rm test cp R website website git rm t
  • 如何在不在存储库中的情况下执行 Git 命令?

    有没有一种方法可以在不位于存储库的情况下对存储库执行 Git 命令 例如这样的事情 git home repo log 请不要告诉我cd到它 我正在通过一个exec call Use C作为 git 的第一个参数 git C home re
  • 有没有一个简单的命令可以将分支转换为标签?

    我即将完成将 哑快照 转换为 git 的繁琐过程 这个过程进展得非常顺利 感谢这个重命名过程 https stackoverflow com questions 6628539 how to tell git that its the sa
  • Git 工作流程:分叉项目并维护本地修改副本,但保持最新

    我正在尝试找出最佳工作流程 用于维护具有自定义功能的 github 托管项目 moodle 的本地副本 同时保持保持副本最新的能力 告诉我我正在考虑做的事情是否完全疯狂 分叉项目 github com moodle moodle gt gi
  • 删除 Git 存储库,但保留所有文件

    在我使用 Linux 的过程中的某个时刻 我决定将我的主目录中的所有内容都放入源代码管理中是个好主意 我不是在问这是否是一个好主意 我是在问如何撤销它 删除存储库的原因是我最近安装了 Oh My Zsh 而且我非常喜欢它 问题是我的主目录有
  • 是否可以检测 http git 远程是智能还是愚蠢?

    我正在我的应用程序中实现一个选项来使用 depth 1制作 git repo 的最小功能克隆 我刚刚意识到愚蠢的 http 传输不支持 depth 我想自动检测 http 远程是愚蠢的还是聪明的 这样我就可以省略 depth与哑 http
  • 具有单个子模块的多个存储库

    我已经找了一段时间但没有找到答案 也许我不知道该看什么 我们有一个主库 它本身就是一个存储库 我们称之为 Lib 它包含我们的大部分模块和子模块 我们还假设它的大小为 2GB 现在我们有很多项目 例如 ProjA ProjB ProjC 每
  • 如何使用 git 比较不​​在存储库中的两个文件

    我想比较两个不在任何 git 存储库中的 css 文件 git中有这样的功能吗 git的 diff 比标准 Unix 更实用diff 我经常想这样做 并且由于这个问题在谷歌上排名很高 所以我希望这个答案出现 这个问题 如何使用git dif
  • GIT:提交时“致命:无法写入 new_index 文件”

    当我尝试将更改提交到本地存储库时 我收到以下消息 致命 无法写入 new index 文件 As this 线程说明 http luhman org blog 2010 04 05 git fatal unable write newind
  • 哪些 git hooks 适用于“git rebase --continue”?

    我正在尝试为我的组织构建一组 git hook 脚本 我想使用的一个脚本 仅用于我自己的多个项目 将是检查git rebase continue我的代码中没有留下任何冲突标记 lt lt lt lt lt or gt gt gt gt gt
  • Git checkout 不会丢弃我的更改

    我在 Windows XP 上使用 git 1 7 1 和 cygwin 这个问题可以通过例子得到最好的说明 git status On branch master Changed but not updated use git add
  • 如何更改 GitHub 上的文件模式?

    git add test file git commit m first commit create mode 100644 test file git push git update index add chmod x test file

随机推荐

  • Ubuntu 18.04.6 LTS install

    目录 Ubuntu系统安装环境及版本 安装步骤 0 虚拟机这边设置就跳过了 1 选择语言 lt 系统安装语言 gt 2 选择键盘配置 默认的就行 3 设置IP地址 4 设置代理 5 设置源 6 磁盘分区 7 设置用户名密码 8 设置SSH
  • NAT模式下,主机ping不通虚拟机,但虚拟机能ping通主机的原因

    请检查主机的vmnet8网卡是不是跟虚拟机同一网段 虚拟机设置为自动ip xff08 DHCP xff09
  • 操作手册的目的、传统的产品操作手册弊端、如何设计优质手册

    操作手册是详细描述软件的功能 性能和用户界面 xff0c 使用户了解到如何使用该软件的说明书 很多时候 xff0c 当我们对产品的某个功能感到困惑时 xff0c 往往需要一份操作手册来帮助我们解答疑惑 何为操作手册 xff0c 官方的定义如
  • 离线手动搭建双节点openstack平台-2.2版本

    双节点 xff1a controller compute 密码统一 xff1a 000000 软件 xff1a VMware Workstation Pro 一 基础配置 xff08 虚拟机安装 xff08 内存 处理器 网卡 镜像 硬盘
  • 后台异常报错——Incorrect result size: expected 1, actual 0

    后台报错截图明细 xff1a 报错代码部分 xff1a SQL语句和params参数都没有问题 xff0c 在数据库运行可以取到一条数据 xff0c 但是从接口就是取不到 xff1b public Map lt String Object
  • 解决ubuntu的Firefox连接网络但是上不了网的问题

    前提 xff1a 选择好软件源 xff0c 我选择的是阿里云 1 sudo apt get update 2 sudo apt get install firefox
  • AI的过去和未来

    做为一个前端来说 ps xff1a 写在开头 xff08 本文为博主原创文章 xff0c 可以转载 xff0c 以授权 xff09 我刚开始觉得本人很不应该去谈什么人工智能 xff0c 智能时代的 xff0c 说句不好听的gnps 但是由于
  • [UEFI]SHELL命令汇总

    命令使用时 xff0c 如果不清楚可以使用help查看 xff1a RETURN STATUS EFIAPI ShellCommandRegisterCommandName IN CONST CHAR16 CommandString IN
  • linux驱动由浅入深系列:tinyalsa(tinymix/tinycap/tinyplay/tinypcminfo)音频子系统之一

    linux驱动由浅入深系列 tinyalsa tinymix tinycap tinyplay tinypcminfo 音频子系统之一 linux驱动由浅入深系列 ALSA框架详解 音频子系统之二 目前linux中主流的音频体系结构是ALS
  • 浏览器缓存机制

    前言 一个优秀的缓存策略可以缩短网页请求资源的距离 xff0c 减少延迟 xff0c 并且由于缓存文件可以重复利用 xff0c 还可以减少带宽 xff0c 降低网络负荷 对于一个数据请求来说 xff0c 可以分为发起网络请求 后端处理 浏览
  • debian 的小软件。

    因为我在gnome平台 xff0c 所以下面的都是gnome平台的 按照菜单的顺序从上到下 apt get install hamster applet 时间管理 apt get install alarm clock 警告时钟 apt g
  • linux(debian )安装libreoffice中文版,libreoffice一闪而过自动关闭

    因为debian已经移走了libreoffice 默认是openoffice org 所以需要单独安装 1 首先下载 选好对应的系统和版本 我是x64的 http zh cn libreoffice org download 2 下载下面3
  • TensorFlow 读取本地数据集压缩包gz,并转换为numpy矩阵【修改官方源码而成】

    本教程以读取Fashion MNIST为例 1 下载Fashion MNIST数据集gz格式压缩包 fashion mnist 共下载四个文件 本人将所有文件保存到此文档路径中 xff1a 39 home brian Documents t
  • cas单点登录的初步了解

    特别声明 xff0c 楼主学一个技术的时候一般会选择去该技术官网学习 xff0c 拿到一手资料 xff0c 毕竟别人翻译过的总会和自己的了解有一些偏差 xff0c 所以对于这次要和大家分享的这个单点登录cas我大概会根据官网提供的信息加上我
  • maven 中的插件不生效的排查方法

    还是自己学艺不精 xff0c 没空系统学习 xff0c 也是边用边学 xff0c 这里记录下 感谢博主的文章 xff1a https www cnblogs com wxyidea p 10276672 html 先说结论 xff1a 原因
  • C++ 判断IP是否属于局域网IP

    对于一个string类型的IP如 34 192 168 1 1 34 如何简单地判断其是否为局域网ip呢 xff1f 这里给出一个简单的实现方法 xff0c 给读者参考 include lt string gt include lt ios
  • 百度2014移动研发笔试题目——1013清华版

    一 简答题 1 简述计算机的存储系统分为哪几个层次 xff0c 为什么这样的分层能够提高程序的执行效率 2 浮点数在计算中如何表示 xff0c 如何对浮点数判等 3 简述TCP与UDP协议的差别 xff0c 两者与HTTP的关系 并列举HT
  • RealVNC:window远程连接ubuntu20.04

    步骤 需求步骤说明 需求 因为有原因需要从外部连接Linux的电脑 xff0c 所以现在就需要安装VNC 步骤 在linux上安装 xff0c 这里我选择离线安装 xff0c 因为我只有这个实验成功了 xff0c 所以现在就开始在linux
  • Ubuntu 磁盘分区方法

    Ubuntu作为代码版本控制仓库时 xff0c 那么就需要很大的空间 xff0c 默认20G配置一般是不够用的 xff0c 那Ubuntu怎么样和Windows一样做磁盘管理 xff0c 分盘扩容呢 xff1f 很简单 xff0c 可以安装
  • git push 遇见的两个错误

    文章目录 more than 10000 commits and skip validation not setprohibited by Gerrit update for creating new commit object not p