• remote: ERROR: missing Change-Id in commit message footer


    remote: ERROR: missing Change-Id in commit message footer

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

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

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

    解决方法:

    1. 从服务器获取“钩子”到本地,如:scp -p -P 8849 远程版本库地址:hooks/c ommit-msg .git/hooks/ 
    图片二

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

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

    合并代码
    Change-Id: Ib177a7e11519838f1036e7432fd199027a13c78d


    3. 现在再提交到远程版本库就行了:git push origin HEAD:refs/for/develop 
    图片三

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

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

  • 相关阅读:
    python3----练习题(斐波那契)
    python3----运算符
    python3----函数、匿名函数
    python3----生成器generator(yield)
    Python捕获异常
    OS模块
    发送邮件
    IO文件读写
    Unittest框架概念
    生成报告
  • 原文地址:https://www.cnblogs.com/wenlj/p/5604932.html
Copyright © 2020-2023  润新知