[摘要:git 提交到近程版本库失足:remote: ERROR: missing Change-Id in commit message footer 那里报错实际上是由于设置装备摆设的时间出有猎取一个“钩子”的器械,由于当地提交到近程版本库的时间中央借要经由] 
 

git 提交到远程版本库出错:remote: ERROR: missing Change-Id in commit message footer 
remote: ERROR: missing Change-Id in commit message footer

这里报错其实是因为配置的时候没有获取一个“钩子”的东西,因为本地提交到远程版本库的时候中间还要经过一道审核

解决方法:

1. 从服务器获取“钩子”到本地,如:scp -p -P 8849 远程版本库地址:hooks/c ommit-msg .git/hooks/ 
remote: ERROR: missing Change-Id in commit message footer

 

2. 然后重新提交一下:git commit --amend

运行上面的命令,进入vim后将上面红框的Change-Id放到注释后面。如:

合并代码
Change-Id: Ib177a7e11519838f1036e7432fd199027a13c78d


3. 现在再提交到远程版本库就行了:git push origin HEAD:refs/for/develop 
remote: ERROR: missing Change-Id in commit message footer

欧克了,现在已经提交到远程版本库了!

Author:leedaning 
本文地址:http://blog.csdn.net/leedaning/article/details/46550303

相关文章:

  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2021-12-11
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-15
  • 2021-10-24
  • 2021-09-07
  • 2021-07-18
  • 2021-11-04
  • 2021-07-07
  • 2022-12-23
相关资源
相似解决方案