I am trying to remove whole git repository from my local machine, but git prohibits to delete several files.
I\'ve tried:
rm -r folder
In my case, for some reason the user immutable flag (uchg) was switched on for everything in the .git folder. This fixed it:
chflags -R nouchg folder/
I could then delete with rm -rf folder/.
rm -rf folder/