消息关闭
    暂无新消息!

在macbook上用sourcetree clone一个项目,git可以push提示权限不够,本地文件夹给权限后仍旧报错,ip已替换为xxx

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 'tyki@xxx.xxx.xxx.xxx:/home/git/manhua.git'

1个回答

︿ 3

remote rejected远程拒绝.

  1. 检查当前push的git账号设置是否在project的成员组中.
  2. 查看git服务器中的配置是否有push权限,或者是当前分支设置了保护, 如果是gitlab, 只有master级别才有push权限, project->setting->members查看级别.