$ 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 ad00bf36407e932b8adbbdda7b62f24f1ef78510fatal: Unpack error, check server logTo 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/远程分支