我正在尝试从我的本地计算机上删除整个 git 存储库,但 git 禁止删除多个文件。
我试过了:
rm -r folder
- 它问我是否要删除一些写保护的文件?我问过
y
。 出现以下消息:
rm: cannot remove ‘.git/objects/08/fa4fcd8413b84a1605e1c4866cb2493daf4c4e’: Operation not permitted rm: cannot remove ‘.git/objects/96/de4fe9aa42239290cae341427649f2afbdab16’: Operation not permitted rm: cannot remove ‘.git/objects/fd/ed37600b5fe66e1a0d0e4355b387e56ca2638e’: Operation not permitted rm: cannot remove ‘.git/objects/pack/pack-cb277ab3b4a3510209a9784a76760e6281da5218.idx’: Operation not permitted rm: cannot remove ‘.git/objects/pack/pack-cb277ab3b4a3510209a9784a76760e6281da5218.pack’: Operation not permitted
该ls
命令显示所有本地文件都已删除。然后我从那个文件夹尝试sudo rm -r .git
了 - 结果相同。
帮我删除那个文件夹。