Ever had the problem that you need to commit a shell script that needs to be executable on a build server, but you are on a windows machine?
Here is the solution:
List file permissions: git ls-files --stage
Change file permissions: git update-index --chmod=+x 'name-of-shell-script'
After that, the first command should list the file with permissions 100755
Now, just commit and you are done!