尝试删除Ubuntu来宾上的git repo [英] Trying to remove git repo on ubuntu guest

查看:138
本文介绍了尝试删除Ubuntu来宾上的git repo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从本地计算机上删除整个git存储库,但是git禁止删除多个文件.

I am trying to remove whole git repository from my local machine, but git prohibits to delete several files.

我尝试过:

  1. rm -r folder
  2. 它询问我是否要删除一些写保护的文件?我问过y.
  3. 出现以下消息:

  1. rm -r folder
  2. It asked me do I want to delete some write-protected files? I've asked y.
  3. Following message appeared:

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

The ls command showed that all local files were deleted. Then I tried sudo rm -r .git from that folder - same result.

请帮助我删除该文件夹.

Help me please delete that folder.

推荐答案

所以我知道了.问题是在我的主机(Windows 7 x64)上,该文件夹被允许只读.我禁用了它,并将其从主机中删除.对不起,您没有说它已安装,并感谢您的答复:)

So I figured it out. The problem was that on my host machine (windows 7 x64) this folder was allowed to read only. I disabled it, and removed it from the host machine. Sorry for not saying that it was mounted, and thanks for all replies : )

这篇关于尝试删除Ubuntu来宾上的git repo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆