【GIT】git push 错误解决

$ git add .

$ git commit -m "***"

$ git push origin HEAD:refs/for/远程提交分支名

报错如下:

Counting objects: 1, done.
Writing objects: 100% (1/1), 231 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
error: unpack failed: error Missing tree ad00bf36407e932b8adbbdda7b62f24f1ef78510
fatal: Unpack error, check server log
To ssh://user@221.239.***.***:****/git 仓
! [remote rejected] HEAD -> refs/for/分支 (n/a (unpacker error))
error: failed to push some refs to 'ssh://user@221.239.***.***:****/git 仓'

 

解决方案:

 $ git push --no-thin origin HEAD:refs/for/远程分支

 

posted @ 2018-10-25 18:59  演武_zhuwei  阅读(1839)  评论(0编辑  收藏  举报