git用vscode“无法将对象迁移到永久存储”是什么意思

时间:2018-08-30 03:00:29

标签: git git-push

我在linux中建立一个裸仓库 当我在Windows中使用vscode编写代码并上载linux然后git(version 2.17.0)push xxxx master时,遇到了这个问题:

Counting objects: 3, done.
Delta compression using up to 16 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 321 bytes | 160.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
error: unable to write sha1 filename 
./objects/ee/316617d17c8663636d107424531ba42f382f10: Permission denied
To /home/suny/test/git/project/arm
! [remote rejected] master -> master (unable to migrate objects to permanent 
storage)
error: failed to push some refs to '/home/suny/test/git/project/arm'

我在linux和git push xxxx master编写代码时进行了测试,没有错误

1 个答案:

答案 0 :(得分:1)

您遇到了文件系统权限错误。

这不是git问题。您使用什么用户帐户上传和应用更改?

如果您使用多个帐户,则需要确保已配置Linux组权限。

更多阅读材料:https://serverfault.com/questions/26954/how-do-i-share-a-git-repository-with-multiple-users-on-a-machine