在git上push代码时缺少Change-Id
生活随笔
收集整理的這篇文章主要介紹了
在git上push代码时缺少Change-Id
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
問題
使用Git提交代碼時,遇到missing Change-Id in commit message footer
會在提交失敗信息中提示如何操作,缺失change-Id 會出現(xiàn)如下提示信息,Hint: To automatically insert Change-Id, install the hook:?
gitdir=(gitrev?parse??git?dir);scp?p?P29418name@git.co.com:hooks/commit?msg(gitrev?parse??git?dir);scp?p?P29418name@git.co.com:hooks/commit?msg{gitdir}/hooks/
按照提示執(zhí)行 gitdir….命令然后重新commit 和 push 就可以
git commit –amend //不需要修改都行 直接退出即可?
git push origin
?
解決
出現(xiàn)問題的時候肯定會有提示紅色部分,按照輸入就好了
總結(jié)
以上是生活随笔為你收集整理的在git上push代码时缺少Change-Id的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: html实现验证码效果,html5使用c
- 下一篇: ascii码转字符