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

相关推荐
走在路上的菜鸟7 小时前
Android学Dart学习笔记第二十六节 并发
android·笔记·学习·flutter
00后程序员张7 小时前
AppStoreInfo.plist 在苹果上架流程中的生成方式和作用
android·小程序·https·uni-app·iphone·webview
成都大菠萝7 小时前
2-2-10 快速掌握Kotlin-out协变
android
成都大菠萝7 小时前
2-2-8 快速掌握Kotlin-vararg关键字与get函数
android
成都大菠萝7 小时前
2-2-7 快速掌握Kotlin-泛型类型约束
android
城东米粉儿7 小时前
Collections.synchronizedMap()与ConcurrentHashMap的区别笔记
android
愤怒的代码7 小时前
深入解析 Binder 运行的状态
android·app
怣疯knight8 小时前
windows比较好用的翻译软件
开源·github
Bigger8 小时前
npm Classic Token 作废后,CI/CD 自动发包如何改?一份完整踩坑复盘
ci/cd·npm·github
YMGogre8 小时前
GitHub 仓库管理员
git·github