I have an ubuntu development system using git to manage files, but I like to do my editing in QTCreator on a different (windows) system, so I have a windows network drive mapped to the ubuntu server.
However, it seems that whenever I save a file, it adds the execute flag on windows. Sometimes it changes from 664 to 764, and sometimes I've seen it change to 777.
So I've been doing a chmod 644 before I do my git add, but it's rather a pain in the ass, and sometimes I forget.
Is there a good way to either prevent windows/QT from adding the +x, or just have "git add" automatically chmod 664 my .c and .h files before staging/committing?
Thanks