I have a git repository and when I create a file locally in my repo, the permissions are set to -rw-r--r--
.
When i push these changes and another developer pulls these changes down, this file now has the permissions -rwxr-xr-x
for him.
The same issue happens vice versa where he creates a file with permissions set to -rw-r--r--
and pushes to our git repo, then I pull the changes the permissions are now -rwxr-xr-x
.
What is causing this and how can I fix it so that whatever the permissions are when one dev pushes, those same permissions will be applied when the next dev pulls?
If it matters we're using Git within TFS.