解决gerrit push时提示ERROR: commit 6f7a2bf: missing Change-Id in message footer

遇到这个问题的时候需要根据提示操作

往commit-msg文件中添加"-o"标志

复制代码
 f="$(git rev-parse --git-dir)/hooks/commit-msg"; curl -o "$f" http://10.123.236.8:802/tools/hooks/commit-msg ; chmod +x "$f"

然后执行git commit --amend --no-edit命令

到此就结束了

这回再执行git push origin XXX:refs/for/XXX试试吧

相关推荐
用户69371750013841 小时前
AI 帮我写了大半年的代码,我却越来越不会写代码了
前端·后端·github
StarsGreen4 小时前
Android 12 中的“域“与“权限“介绍
android
xuxie994 小时前
GIT版本管理
git
茶栀(*´I`*)4 小时前
Git从零开始操作清单
git
长不大的杨瑞杰5 小时前
GitHub Copilot Browser Use 实战:让 AI 在浏览器里调试与自动化测试
人工智能·github·copilot·playwright·github copilot·browser use
大侠Luffy6 小时前
用 EmbeddingGemma 2 做一个本地照片与短视频搜索工具
开源·github·ai编程
咖啡色格调6 小时前
项目已托管在 Gitee,如何同时推送到 GitHub
gitee·github
人人都是软件工程师6 小时前
前端接了 Agent,为什么还是满屏自定义代码?读懂 AG-UI 的 31 个事件
人工智能·github
恋猫de小郭6 小时前
Android Keep Rules 解读,直接影响 Google Play 上架和曝光
android·前端·flutter
FlightYe6 小时前
音视频修炼之容器与协议(六):HTTP 协议
android·linux·网络·网络协议·算法·http·音视频