解决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试试吧

相关推荐
Android系统攻城狮11 小时前
Linux Gstreamer深度解析之gst_audio_encoder_set_frame_max调用流程与实战(六十一)
android·linux·运维·音视频·gstreamer音视频·音视频进阶·gstreamer音视频进阶
Maynor在掘金14 小时前
Nano Banana 2.1 来了!21 个真实案例 + 公开提示词,这份 Awesome 合集请收好
github
miofly14 小时前
ChatGPT 账号用户可免费使用 Auto-review 双智能体审查功能
开源·github
传奇开心果编程14 小时前
【Compose Multiplatform 跨端开发学与练】第7课 平台适配与互操作
android·windows·学习·ui·ios·kotlin·composer
mmsx14 小时前
Android 地图数据链路:从 GDAL、KML 到多引擎适配
android·kotlin
高频因子挖掘机14 小时前
第一次补历史行情:按股票拆,还是按日期拆请求?
后端·github·api
2601_9689007715 小时前
大模型版本回归评估实战:从能力指标到额度口径的完整链路
android·数据挖掘·回归
高频因子挖掘机15 小时前
300 只股票 × 两年日 K:为什么逐只循环会变成维护灾难?
后端·github·api
Jooolin15 小时前
把 GitHub Issue 的第一轮脏活交给 AI:做一个 Issue 分诊助手
人工智能·github
驭渊的小故事16 小时前
linux 基础命令 + git 仓库创建和配置命令
linux·git