how to delete a empty directory in git without git command code example
Example 1: git delete empty directory
git clean -fd
Example 2: remove directory from git without deleting
#for directory
git rm --cached -r myfile
git clean -fd
#for directory
git rm --cached -r myfile