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

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐