macbook git push 时提示权限不够,给权限后仍旧报错?

2017-07-25 16:53:21 +08:00
 tigiyj
在 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 'tyki@xxx.xxx.xxx.xxx:/home/git/manhua.git'
1814 次点击
所在节点    问与答
2 条回复
TabGre
2017-07-25 22:54:38 +08:00
仓库权限不够,搜索关键字应该很容易解决
tigiyj
2017-07-26 08:45:27 +08:00
@TabGre 我的账户没有权限 push 到仓库吗?
搜索过关键词,是本地.git 没权限,但是我改成 777 后也没权限

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/377862

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX