git 无法提交代码 Repo upload missing tree
Repo upload missing tree,突然就出现这种情况,本地代码 git pull 是最新的
1. 首先 git branch -a
.........remotes/aosp/testremotes/m/wingtech -> aosp/ap_sdm_xxx_my_xxxx 最后的解决是 git push --no-thin aosp HEAD:refs/for/ap_sdm_xxx_my_xxx --- 名字要写对,按照上面查询的
网上有这种的 http://blog.csdn.net/liuxu0703/article/details/54289873git push --receive-pack='git receive-pack --reviewer xxx@xxx.cn --reviewer xx@xx.cn' review HEAD:refs/for/master
Counting objects: 1, done.
xxxxxx
xxxxxx
无法提交成功
git push --no-thin review HEAD:refs/for/master发生本文中出现的问题,貌似是因为某个 git 对象和服务器不一致了.
这时加上 --no-thin 参数,把该传的都传过去,问题就解决了.
2018-8-30 补充, 同事出现了一样的问题,使用此命令出现错误
如果push 不成功 去掉 .git 文件夹下的 condifg 里面的 http://192.168.xx.xx/main/plartm/xxx --- 把main去掉试试
2. 如果尝试1 不行, 那就继续先按照2修改, 再执行1
cd .git --- 切换到当前无法提交的目录下的 git
vi config --- 查看core]repositoryformatversion = 0filemode = true
[filter "lfs"]smudge = git-lfs smudge --skip -- %f
[remote "aosp"]url = git://192.168.xx.xx/main/platform/vendor/qcom/proprietary/qrdplus --- 修改这里的URL到真正项目的URL 或其他URL 尝试review = http://192.168.xx.xxprojectname = platform/vendor/qcom/proprietary/qrdplusfetch = +refs/heads/*:refs/remotes/aosp/*
[branch "work"]remote = aospmerge = refs/heads/ap_sdm_xxx_xxxxx
~
2. 如果尝试1 不行, 那就继续先执行2
cd .git
vi config
core]
repositoryformatversion = 0
filemode = true
[filter "lfs"]
smudge = git-lfs smudge --skip -- %f
[remote "aosp"]
url = git://192.168.38.99/main/platform/vendor/qcom/proprietary/qrdplus --- 修改这里的URL
review = http://192.168.30.13
projectname = platform/vendor/qcom/proprietary/qrdplus
fetch = +refs/heads/*:refs/remotes/aosp/*
[branch "work"]
remote = aosp
merge = refs/heads/ap_sdm450_spf2.0_cmcc_n3_rom
~
.........remotes/aosp/testremotes/m/wingtech -> aosp/ap_sdm450_spf2.0_my_gitgit push --no-thin aosp HEAD:refs/for/ap_sdm450_spf2.0_cmcc_n3_rom
.........remotes/aosp/testremotes/m/wingtech -> aosp/ap_sdm450_spf2.0_my_gitgit push --no-thin aosp HEAD:refs/for/ap_sdm450_spf2.0_cmcc_n3_rom
.........remotes/aosp/testremotes/m/wingtech -> aosp/ap_sdm450_spf2.0_my_gitgit push --no-thin aosp HEAD:refs/for/ap_sdm450_spf2.0_cmcc_n3_rom
git 无法提交代码 Repo upload missing tree相关推荐
- git第一次提交代码至远程仓库步骤
git第一次提交代码至远程仓库步骤 在将要提交的文件目录下打开Git Bash Here 1.git init git add . 提交该目录下的所有文件 3.git commit -am " ...
- VSCode中使用Git忽略提交代码设置
转载自:VSCode中使用Git忽略提交代码设置_winsomeWin的博客-CSDN博客 在VSCode中使用Git的时候如何忽略某些文件. 文件-> 首选项->设置:扩展–>Gi ...
- git第一次提交代码至远程仓库
一 首次提交代码到git仓库 第一步:git init 初始化项目文件夹 第二步:git add . 键所有文件添加到暂存区 第三步:git commit -m "first commit& ...
- Git第一次提交代码/文件的操作
Git第一次提交代码到远程仓库 第一步:git init 初始化项目文件夹 第二步:git add . 键所有文件添加到暂存区 第三步:git commit -m "first commit ...
- idea使用git插件提交代码
idea使用git插件提交代码 打开gitee,创建一个私有仓库,复制这个仓库的url地址.在commit的时候会用到 关联idea中的项目和gitee仓库,操作步骤参考如下链接 https://ji ...
- 【mac如何修改git本地提交代码的用户名和邮箱】
mac如何修改git本地提交代码的用户名和邮箱 入职新公司,推完代码发现推送人不是自己,因为电脑里还是前同事的用户信息,所以我们需要在本地客户端重新设置一下. 一.打开mac的终端,查看本地配置 # ...
- Androidstudio 使用git插件提交代码
1.androidstudio中的项目已经推送到git仓库上(与仓库已经建立了联系) 参见: 2.右键目录--git---commit directory : 3.填写相应的commit Messig ...
- 使用git remote提交代码
git remote上传本地代码到远程仓库: 第一次上传本地代码,可以按照如下流程: 1. git init # 初始化本地代码仓库 2. git checkout -b develop # 创建并切 ...
- git第一次提交代码至远程仓库-强制推送
一 首次提交代码到git仓库 第一步:git init 初始化项目文件夹 第二步:git add . 键所有文件添加到暂存区 第三步:git commit -m "first commit& ...
最新文章
- JS中使用EL表达式
- mysql 基于c_linux-基于MYSQL的C程序实践
- mac m1下编译spring框架
- 会议升降计算机主机,升降式无纸化多媒体会议系统
- 我的runtime学习笔记
- python pip清华源安装库
- 字节大数据手册火了 ! 离线数据/实时数据/数据仓库ETL/实时交易系统/啥都有 !...
- javascript挑战编程技能-第九题:数据结构
- oracle数据库监听频道异常,数据库监听不定期出现异常故障处理
- phpstorm 全项目替换_会信息交互还带5G基站的路灯来了!白云新城智慧灯杆项目动工...
- [转]VC工程文件说明
- linux计划任务踩坑
- 三防漆——选型及验证
- Python学习第二章:变量和简单类型
- Office之word如何删除页眉横线
- 慈禧是怎么吃年夜饭的
- 嵌入式分享合集106
- Revo Uninstaller专业版
- 本地Ping不通华为云服务问题解决
- PHP学习笔记:环境变量