Girrit常见问题以及解决方案
2016-01-08 10:55
281 查看
提示 remote: ERROR: missing Change-Id in commit message footer。
临时解决方案
打开commit信息,将change id贴进去再push
永久解决方案
提示
Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
尝试使用root账户进行clone 以及其他操作
提示commit id重复或者已经存在
提示 ! [remote rejected] master -> master (prohibited by Gerrit)
表示由于Gerrit的保护无法直接推送到master,只能通过分支引用的形式
提示error: unpack failed: error Missing unknown HASH
由于之前的某个提交为处理导致,联系管理员。
管理员: 操作gerrit数据库
找到那个HASH对应的change_id
提示error: unpack failed: error Missing tree
git版本超过1.8会出现该提示,在push的时候加上参数
临时解决方案
git commit --amend
打开commit信息,将change id贴进去再push
永久解决方案
git clone ssh://user@yourdomain:29418/my-test && scp -p -P 29418 user@yourdomain:hooks/commit-msg my-test/.git/hooks/
提示
Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
尝试使用root账户进行clone 以及其他操作
提示commit id重复或者已经存在
git log --oneline #查看提交历史commit git reset --hard <commit_id> ##彻底回退到某个版本,本地的源码也会变为上一个版本的内容 git push origin HEAD --force ##强制push
提示 ! [remote rejected] master -> master (prohibited by Gerrit)
表示由于Gerrit的保护无法直接推送到master,只能通过分支引用的形式
git config remote.origin.push refs/heads/*:refs/for/*
提示error: unpack failed: error Missing unknown HASH
由于之前的某个提交为处理导致,联系管理员。
管理员: 操作gerrit数据库
java -jar bin/gerrit.war gsql gerrit
select * from PATCH_SETS ;
找到那个HASH对应的change_id
update changes set open='N',status='A' where change_id=上面查到的;
提示error: unpack failed: error Missing tree
git版本超过1.8会出现该提示,在push的时候加上参数
--no-thin
git push --no-thin
相关文章推荐
- 浏览器内存泄露
- Android 之 JSON操作
- Openfire 的安装和配置
- MongoDB 数据类型
- 安全的应用程序开发和应用程序安全防御
- dpi 、 dip 、分辨率、屏幕尺寸、px、density 关系以及换算
- OpenJDK 7的HotSpot VM目录结构(转)
- php 解析xml 的四种方法
- 模拟人类大脑每秒计算数量级的估计
- Activiti简介
- SpringMVC 基础教程 框架分析
- 通知Android系统相册更新
- 如何用cmd命令控制mysql数据库
- hdu 1217 Arbitrage
- C++运算符结合性与自增/减运算符
- js setTimeout 延迟函数中的this
- protocol buffers在linux下的安装
- C语言学习之关键字第八讲
- paper reading in this week
- b75,gtx560,I5 安装10.10.2