How to stop git from making files non-executable on cygwin?

I believe you want git update-index --chmod=+x <file>, followed by a commit.


You should start with git update-index --chmod=+x <file>.

But this does not change your working copy, for that:

git checkout .