Change permissions of file according to git status
chmod 755 `git status --porcelain | perl -nle '/M (.*)/ and print $1'`