I am having to do chmod -R 755 some_dir
where 'some_dir' contains '.git' folders. Is there any way I can exclude hidden files and folder when doing recursive chmod?
Note: chmoding .git folder is throwing the following error
some_dir/.git/objects/pack/pack-dd149b11c4e5d205e3022836d49a972684de8daa.idx': Operation not permitted
I don't really need to chmod .git folders but unfortunately I can't remove them also in my case.