windows – 删除git目录时“权限被拒绝”
发布时间:2020-12-14 04:10:21 所属栏目:Windows 来源:网络整理
导读:我正在尝试使用win7和git-bash删除.git目录.这是我的尝试: $rm -rf .gitrm: cannot remove directory `.git/objects/5e': Permission deniedrm: cannot remove directory `.git/objects': Directory not emptyrm: cannot remove directory `.git': Director
我正在尝试使用win7和git-bash删除.git目录.这是我的尝试:
$rm -rf .git rm: cannot remove directory `.git/objects/5e': Permission denied rm: cannot remove directory `.git/objects': Directory not empty rm: cannot remove directory `.git': Directory not empty $rmdir .git rmdir: `.git': Directory not empty 我究竟做错了什么?
Windows 7 – Git-bash
$sudo sh.exe": sudo: command not found Windows中的git-bash没有sudo命令. 最有可能的是,您在命令shell中使用了一些具有提升权限的git命令.在Windows 7中,普通用户和具有提升权限的用户具有不同的权限.尝试执行以下操作之一 >尝试在Windows资源管理器中删除该目录>以管理员身份启动git bash并运行rm命令.>尝试更改其权限,以便普通用户可以完全控制该目录. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读