gpt4 book ai didi

git clone copy-fd 权限被拒绝

转载 作者:行者123 更新时间:2023-12-04 18:30:00 42 4
gpt4 key购买 nike

当我做:

git clone git@192.168.15.11:xxx/xxx.git

有一个错误:
Cloning into 'xxx'...  
error: copy-fd: write returned Permission denied
fatal: cannot copy '/usr/share/git-core/templates/description' to '/mnt/wk01/xxx/.git/description': Permission denied

谁能帮我?

最佳答案

权限问题可能不在目标文件夹中 /mnt/wk01/xxx/ , 但在源文件夹 usr/share/git-core/templates/description
mentioned here :

Package: git-core, Version: 1.5.6.5

The file permissions of files placed in /usr/share/git-core/templates are wrong now. They are not readable for everyone, so command "git init" fails with message:


fatal: cannot copy /usr/share/git-core/templates/description to ...

chmod a+r for all files in templates solves this issue.



确保 upgrade to the latest git version through git-core ppa .

关于git clone copy-fd 权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42499981/

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com