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

I use git on Windows via cygwin and soon decided to use filemode=false (since otherwise I've got a lot of changes after the initial git clone). I'm definitely not interested in tracking permission at all, the only think I need is for some files to be executable. From time to time, I find that the x flag on some files gets lost and I strongly suppose it's because of git.

I'd be happy with a solution allowing to execute chmod a+x ... when needed.


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 .

I've met the same problem. git update-index --chomd=+x doesn't work for me.

I use chmod +x , then commit, it works perfect.

Need Your Help

Changing my blocking play / scala /slick algorithm not to block

scala playframework-2.0 scalability future slick-3.0

Here is a relatively simple problem, I'm sure I'm missing something basic.

Java Swing adding mouse Listener (inner class) for an array of buttons leads to malfunction

java arrays swing button mouseevent

Ok, so the program I want to build is simple. There are five buttons named from 0 to 4. If any of the buttons are pressed, then the number 0 to 4 is printed in console.