1.使用 git push origin HEAD:refs/for/master%wip? 把代碼臨時提交到gerrit 上去,不能自動生成
使用Git提交代碼時,遇到missing Change-Id in commit message footer
會在提交失敗信息中提示如何操作,缺失change-Id 會出現(xiàn)如下提示信息,Hint: To automatically insert Change-Id, install the hook:
gitdir=$(git rev-parse --git-dir); scp -p -P 29418name@git.co.com:hooks/commit-msg ${gitdir}/hooks/
按照提示執(zhí)行 gitdir....命令然后重新commit 和 push 就可以
git commit --amend --no-edit? 或? git commit --amend? //不需要修改都行 直接退出即可
git push origin
2. 如果以上還不能解決,接下來要看 https://www.cnblogs.com/wangyk517/p/5825042.html 博客