zoukankan      html  css  js  c++  java
  • git issue 汇总

    (1)部分:

    https://wiki.mahara.org/wiki/Developer_Area/Contributing_Code/Troubleshooting_your_Gerrit_connection

    (2)git报错:unable to create file xxx.file : permission denied

    不知道是不是文件在什么地方被打开或者占用了,试了网上很多方法都不行,最后重启了电脑,再执行git 命令,就可以了。

    (3)git merge 后 push 到 Gerrit 失败,提示 no new changes ?

    需求:Git 分支合并 问题:使用 git merge 在本地执行分支合并操作,然后想 push 到 gerrit 上评审入库,可是在提交时,提示: ! [remote rejected] HEAD -> refs/for/dev (no new changes) 分析:no new changes 的意思,是说,这个合并,是个线性的合并。而合并的那些历史的 commit 节点,在 gerrit 上都已经评审过了,都是已有的 change 单,所以 gerrit 认为没有新的提交,就不让你提交评审。 方法1: 在 git merge 的时候,加上 --no-ff 参数,是为了让它生成一个新的 commit,这样就可以提交了~(不过生成的 gerrit change 是看不到改动信息的):git merge --no-ff v4.5 或者 git merge branch_name -m "分支合并" 方法2:不经过 gerrit,直接 push 入远程库。(不推荐)

    【4】$ gitdir=$(git rev-parse --git-dir); scp -p -P 12345 longchaoqun@smartgit:hooks/commit-msg ${gitdir}/hooks/ 返回结果Either -f or -t option should be set

    解决:直接从服务器上下载http://smartgit/gerrit/tools/hooks/commit-msg, 把commit-msg文件放到.git/hooks目录吧

    【5】git pull之后,merge了最新一个commit版本,但是没有changeId。

    解决:重新提交后再push。git commit --amend ; git push

  • 相关阅读:
    mysql服务器上的mysql这个实例中表的介绍
    mysql的innodb存储引擎和myisam存储引擎的区别
    Ubuntu配置java环境变量
    Android_adb shell am/pm使用
    tty相关内容
    Ubuntu和windows共享文件夹
    蓝牙查询网站
    Vim折叠模式设置
    ubuntu下安装jdk
    Linux下Gcc生成和使用静态库和动态库详解
  • 原文地址:https://www.cnblogs.com/zndxall/p/9714345.html
Copyright © 2011-2022 走看看