码迷,mamicode.com
首页 > 其他好文 > 详细

error: unpack failed: error Missing tree

时间:2015-05-17 20:14:16      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:

最近新建一个仓库,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还得花时间研究下,刚接触不久,小菜鸟一枚,好多原理都还弄不明白

error: unpack failed: error Missing tree

标签:

原文地址:http://www.cnblogs.com/qingliuyu/p/4510233.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!