【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/远程分支
代码就是生活的一部分。
坚持每天积累一点,时间久了,你就牛b了!