在 master 分支上面有 N 个 commit ,现在要把这些 commit 合并为一个,我就用git rebase -i 23364d 把这些 commit 合并了,然后再往服务器 push ,结果就报错
Counting objects: 2, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 665 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 1 (delta 0)
remote: error: insufficient permission for adding an object to repository database objects
remote: fatal: failed to write object 33a66d58ac89fb134a8fcaeaf671b233de675924
error: unpack failed: unpack-objects abnormal exit
To http://192.168.0.111:8080/release.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'http://192.168.0.111:8080/release.git'
然后我就照着 so 上面有人的答案git repack master 之后再 push ,还是一样的错误,没办法 push 到服务器,这个怎么解决?


