在 macbook 上用 sourcetree clone 一个项目,git 可以 push 提示权限不够,本地文件夹给权限后仍旧报错,ip 已替换为 xxx.
最近项目需要刚开始用 git,之前一直用 svn 的.
git push origin master
Counting objects: 11, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (11/11), done.
Writing objects: 100% (11/11), 968 bytes | 0 bytes/s, done.
Total 11 (delta 10), reused 0 (delta 0)
error: insufficient permission for adding an object to repository database ./objects
fatal: failed to write object
error: remote unpack failed: unpack-objects abnormal exit
To xxx.xxx.xxx.xxx:/home/git/manhua.git
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to '
[email protected]:/home/git/manhua.git'