error: unpack failed: error Missing tree

最近新建一个仓库,push时遇到如下问题,试了好多方法,最后在stackoverflow上找到解决办法了,可是在开始时就试过这方法,但不成。至于为嘛出现的这种错误,还是不明白原因。

git.exe push --progress  "origin" release:refs/for/release%r=xxx

Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 663 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
error: unpack failed: error Missing tree 4201fba85e02299e016f0129621858ec21ac94ae
To (url)
! [remote rejected] release -> refs/for/release%r=xxx(n/a (unpacker error))
error: failed to push some refs to ‘(url)‘

git did not exit cleanly (exit code 1) (593 ms @ 2015/5/15 9:51:12)

 

解决方法:git push --no-thin origin HEAD:refs/for/release

Git还得花时间研究下,刚接触不久,小菜鸟一枚,好多原理都还弄不明白

时间: 2024-08-24 21:17:04

error: unpack failed: error Missing tree的相关文章

error: unpack failed: error Permission denied

gerrit服务器迁移后,clone和pull代码到本地,都没问题. 但是,push时,报错: 查看了下git版本库存储目录,发现git下版本库镜像文件owner都是root.因为之前安装的gerrit服务器使用root账号安装的.新的服务器使用了gerrit用户安装. 并结合网络上的这个问题解决方案:https://bitbucket.org/sdorra/scm-manager/issue/225/git-push-fails-with-error-unpack-failed 经版本库存放路

Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing(Android Studio编译错误)

今天下载了一个1.2.1.1版本的Android Studio,使用VPN更新好SDK之后就新建了一个hello world工程测试一下环境,然后就出现以下错误: Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing 什么情况?全新安装的环境也有错误?Google发布这个工具时没有测试好吗? 没搞过这个工具,一阵搜索得到以下方案: 1.右键工程->Open Module Settings 2.将Bu

解决方案:Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing

也许有朋友最初在用Android Studio创建新工程的时候会碰到这个错误,其实这个问题是由于版本不兼容导致的,解决方法很简单,只需要把编译工具的版本改一下就可以了: 1.选左侧的工程根目录app,按F12打开Project Structure: 2.点击底部的app,把右侧Build Tool Version 从23.0.0 改为22.0.1即可~ 解决方案:Error:Execution failed for task ':app:compileDebugAidl'. > aidl is

Error:Execution failed for task ':app:compileDebugAidl'. > java.lang.IllegalStateException: aidl is missing from '/Users/renguodong/Library/Android/sdk/build-tools/26.0.2/aidl'

错误信息:Error:Execution failed for task ':app:compileDebugAidl'. > java.lang.IllegalStateException: aidl is missing from '/Users/renguodong/Library/Android/sdk/build-tools/26.0.2/aidl' 出错分析:网上查了一些信息,给出的都是要把BuildTools Version和Compile Sdk Version一致.可是我的已经

【Repo】repo sync:error.GitError: cannot initialize work tree

1.Error Fetching projects: 100% (725/725), done. Checking out files: 100% (4605/4605), done.out files: 41% (1902/4605) Checking out files: 100% (4371/4371), done.out files: 2% (89/4371) Checking out files: 100% (48/48), done.king out files: 35% (17/4

SevenZip.SevenZipLibraryException: Can not load 7-zip library or internal COM error! Message: failed to load library.

SevenZip.SevenZipLibraryException: Can not load 7-zip library or internal COM error! Message: failed to load library.解决方案 问题原因:就是你的系统版本是64位,然后你用了32位的dll(或者反过来) 解决方案:https://github.com/gdoujkzz/7zdll/tree/master/7z 这里面有32位的和64位7zdll.

error C2143: syntax error : missing ';' before '{'

这是我在实现哈夫曼树的时候,遇到的错误,具体为什么我也不清楚!!!因为这是我用学校实验室的电脑编译出现的错误(用的软件是VC6.0,贼老的版本!!!),我自己的是Code Blocks(没有出错)??? 代码如下: for ( i = 1; i <= n; i++ ) { huffNode HT[i](w[i],0,0,0);//初始化前n个节点(构造哈夫曼树的原始节点) } 然后,就有错了(-_-!) error C2057: expected constant expression erro

View Composer Agent initialization error (16): Failed to activate software license (1026556)

1.       桌面发布过程中偶尔有些桌面池中的桌面提示无法访问代理,查看报错信息如下:View Composer Agent initialization error (16):Failed to activate software license (1026556). KB地址:https://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=1026556 主要意思是Windows 7系统激活的

InnoDB: Error: io_setup() failed with EAGAIN after 5 attempts

在一台server中以各数据库的备份文件为数据文件启动多个MySQL实例供SQL Review使用. 之前执行一直没有问题(最多的时候有23个MySQL实例同一时候执行).后来新配置了一台server,启动其相应的实例时失败. 部分错误日志例如以下: -- 140505 16:05:59 InnoDB: Using Linux native AIO 140505 16:05:59  InnoDB: Warning: io_setup() failed with EAGAIN. Will make