gerrit "missing Change-Id" 解決方法

使用Git commit & push review 後出現以下錯誤:

remote: ERROR: missing Change-Id in commit message footer

問題原因是 commit-msg 在 項目目錄/.git/hooks/... 下並沒有存在,

所以按照提示生成 commit-msg 後, 再使用命令 git commit --amend  添加change-id,

重新在 push 就可以了

 

參考大牛的更多解決方案:https://blog.csdn.net/liuxu0703/article/details/54343096

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章