What command do I use to delete a folder and all contents in it using Git Bash?
What command do I use to delete a folder and all contents in it using Git Bash?
the other answers are correct if you are talking about Git, but if you're talking about just deleting a folder in a Bash terminal (like the one installed with Git SCM), then you could do it this way:
rm -rf folderName
The r option is for "recursive".
the f option is for "force" (so that it removes a folder even if it has files in it).
Here's a manual page that outlines how to use the rm command in Bash.
Try this:
git rm -r --cached <folder>
git commit -m "Removed Folder"
git push origin master
git push origin master git commit -m "Remove duplicated directory" git push origin master