I am using cygwin on Windows 7 professional.
When I create new files such as MyNewFile.java it seems to get default permission set to 755. This is not what I want. I want it to be 644 for regular files.
This is very annoying to have to change permissions every time I create new files outside of the cygwin terminal (cp from cygwin terminal works fine and just keeps existing permissions as expected, even creating new files from inside cygwin works).
Alternatively, is there any way in git to auto-change *.myextension files to always have a specific permission?
If not, is there any way to recursively chmod 644 all *.myextension files recursively under a folder (without affecting folder permissions!)?