2

我家有两台电脑。一个是保存我的 git init 存储库的服务器。我在桌面上克隆了存储库(通过 ssh 进行 git clone)。我做了一些更改并尝试将它们推送到原始主机,但它不允许我编写文件......我阅读了很多文章并创建了组和权限,但我仍然得到这个?任何帮助或建议将不胜感激。

sudo git push origin dev 
[sudo] password for localuser: 
remoteuser@192.168.0.5's password: 
Counting objects: 9, done.
Delta compression using up to 6 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 629 bytes, done.
Total 5 (delta 3), reused 0 (delta 0)
error: insufficient permission for adding an object to repository database ./objects



fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To remoteuser@192.168.0.5:/var/www/apps
 ! [remote rejected] dev -> dev (n/a (unpacker error))
error: failed to push some refs to 'remoteuser@192.168.0.5:/var/www/apps'

提前致谢。

4

0 回答 0