Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete non git directory in git bash, windows

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

I cant seem to get rmdir to work in git bash. Its not in a git repo and I've tried the above. Mkdir works as expected, why doesnt this?

like image 399
sledgeweight Avatar asked Mar 11 '14 11:03

sledgeweight


1 Answers

rmdir will not work if directory is empty

Try

  rm -rf yo-2

git-bash is a Linux like shell

like image 62
Raul Andres Avatar answered Oct 02 '22 23:10

Raul Andres