Cannot delete a sub-sub....-sub folder while trying to delete a git repository in a git repository

156 Views Asked by At

I wanted to delete a git repository and while doing that it gives me

Error when getting information for file “/leg/home/chaitanya/MyFolder/React/portfolio/node_modules/.cache/gh-pages/https!github.com!cvsschaitanya!portfolio.git/.git/HEAD”: Bad message

Then I went for the big guns and tried rm -rf and it gives

rm: cannot remove '.git/HEAD': Bad message

There is nothing else in the folder except this one seemingly empty folder which doesn't want to go.

What can I do?

0

There are 0 best solutions below