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
The following command may help:
chmod -R u+w folder/
Also make sure you own all the files which you're trying to remove:
chown -R $USER folder/
On Linux it may be also a file attribute (check by lsattr):
lsattr
chattr -R -AacdDijsStu folder/