Git rm, gives scary "Deletion of directory failed" when I only delete one file
git
Solution
Likely, the directory `samples` would be empty after the file removal. Git would normally delete it then, however since your shell's working directory is also in the same directory, removal fails.
Problem
``` ~/repo/samples>git rm subviews.js rm 'samples/subviews.js' Deletion of directory 'samples' failed. Should I try again? (y/n) n ``` Why does it try to delete directory when I clearly told that I want to delete the file? To make it more clear: The same directory contains about 10 more files and they are also tracked by git.