git add access rights for script code example
Example 1: git add access rights for script
git update-index --chmod=+x foo.sh
Example 2: git commit permission changes
git config core.fileMode false
git update-index --chmod=+x foo.sh
git config core.fileMode false