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

  • 相关阅读:
    Python网络爬虫——bs4基本用法
    Python网络爬虫——requests模块(1)
    yii gii配置ip限制使用gii
    openfire连接数据库mysql
    js 提示条
    jquery滚动条平滑滑动
    yii2.0 添加组件baidu ueditor
    yii添加验证码 和重复密码
    css图标库 font-awesome.min.css
    yii配置访问路由权限配置
  • 原文地址:https://www.cnblogs.com/zndxall/p/9714345.html
Copyright © 2011-2022 走看看