Dan*_*ean 9 git ubuntu virtualbox ubuntu-13.04
我试图从我的本地机器中删除整个git存储库,但git禁止删除多个文件.
我试过了:
rm -r foldery.以下消息出现:
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
Run Code Online (Sandbox Code Playgroud)该ls命令显示已删除所有本地文件.然后我尝试sudo rm -r .git从该文件夹 - 相同的结果.
请帮我,删除该文件夹.
Phi*_*gan 23
关闭可能正在运行的任何git客户端.
首先设置要删除的权限:
chmod -R 777 folder
Run Code Online (Sandbox Code Playgroud)尝试强制删除:
rm -rf folder
Run Code Online (Sandbox Code Playgroud)