gpt4 book ai didi

linux - git pull 和文件权限

转载 作者:太空宇宙 更新时间:2023-11-04 04:07:22 26 4
gpt4 key购买 nike

我正在尝试使用 git pull 从 git 存储库中提取更改,但收到此错误:

error: unable to unlink old 'folder/file.php' (Permission denied)

file.php 的权限为 664,owner:group 是我的用户。因此,我将权限更改为 775,认为我只需要写入访问权限,但现在当我执行 git pull 时,出现错误,提示我需要存储本地更改。如何提取此文件的更改?

最佳答案

要取消链接文件名,您需要在包含该文件名的目录上使用 wx

撤消那个愚蠢的 775 并查看目录权限。

ls -ld folder

关于linux - git pull 和文件权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20687650/

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