git push失败报错 missing Change-Id in message footer 解决办法
解决git push 报错missing Change-Id in message footer
·
这里写自定义目录标题
GIT change-id生成
git push失败报错
ERROR: commit 3d54e63: missing Change-Id in message footer
解决办法
进入https://xxxxxxx.com/tools/hooks/commit-msg,下载commit-msg放在.git/hooks目录里
然后git bush,**注意:**不要在vs code里输入命令!请使用git bush
然后输入gitdir=$(git rev-parse --git-dir); scp -O -P 29418 xxxxx@xxxxxx.com:hooks/commit-msg ${gitdir}/hooks/
注意:这里提示里是scp -p -P,但是需要改成scp -O -P,别的和提示一样,
加change id
最后自己的提交现在是没有change -id,需要对此提交进行git commit --amend --no-edit
git就会自动给这笔commit加上change id
更多推荐
已为社区贡献1条内容
所有评论(0)