- on your repo's root, run :
find . -type f | xargs chmod -x - commit this change on files :
commit -n -m 'fix: files permission from 100755 to 100644' - then with
vim .git/config, setfilemodeoption tofalse
[core]
filemode = false
@liitfr The command should be find . -type f -print0 | xargs -0 chmod -x so that filenames containing spaces do not return a File Not Found error.
Thanks, using @marvinpuethe's approach above worked for me