试图删除ubuntu guest上的git repo

前端之家收集整理的这篇文章主要介绍了试图删除ubuntu guest上的git repo前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图从我的本地机器中删除整个git存储库,但git禁止删除多个文件.

我试过了:

> rm -r文件
>它问我是否要删除一些写保护文件?我问过你.
>以下消息出现:

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 – 结果相同.

请帮我,删除文件夹.

>关闭可能正在运行的任何git客户端.
>首先设置要删除的权限:
chmod -R 777 folder

>尝试强制删除

rm -rf folder
原文链接:https://www.f2er.com/ubuntu/347360.html

猜你在找的Ubuntu相关文章