Tag Archives: error: unpack failed: error Missing tree

Git error: unpack failed: error Missing tree [How to Solve]

I recently created a new warehouse and encountered the following problems when I pushed it. I tried many methods and finally found a solution on stackoverflow, but I tried this method at the beginning, but it didn’t work. As for why this error occurred, I still don’t understand the reason.

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)

 

Solution: git push –no-thin origin HEAD:refs/for/release