rac*_*mic 14 command-line git-bash
xx@xx-PC ~/xampp/htdocs/sites
$ rmdir /s "yo-2"
rmdir: `/s': No such file or directory
rmdir: `yo-2': Directory not empty
xx@xx-PC ~/xampp/htdocs/sites
$ rmdir "yo-2"
rmdir: `yo-2': Directory not empty
Run Code Online (Sandbox Code Playgroud)
我似乎无法让rmdir在git bash中工作.它不是一个git repo,我已经尝试了上述内容.Mkdir按预期工作,为什么不这样做?
Rau*_*res 23
rmdir 如果目录为空,则无效
尝试
rm -rf yo-2
Run Code Online (Sandbox Code Playgroud)
git-bash 是一个类似Linux的shell
如果您尝试删除整个目录而不管内容如何,您可以使用:
rm <dirname> -rf
Run Code Online (Sandbox Code Playgroud)