In most cases just ignoring the changes is probably enough, but I have a few repos where the filemode changes need to be tracked.
What I'm looking for is a way to stop the automatic change that happens in different operating systems on check out. If I check out the repo on Windows it sets the filemode to 0755 and flags all files as changed in git status. If I check the same repo out on Linux it behaves the same except they are set to 0644 which is what they should be. How can I make Windows keep the 0644 permissions on checkout/in?
The only workaround I know of would be to keep (and maintain) a set of scripts to manually set the permissions, but that shouldn't be needed since the functionality is already there.