Make git ignore the chmod operation, say chmod +x gradlew:
git config core.fileMode false
Meanwhile, add --global parameter to make this work for all repositories:
git config --global core.fileMode false
Refer to git-config:
--global
For writing options: write to global ~/.gitconfig file rather than the repository .git/config, write to $XDG_CONFIG_HOME/git/config file if this file exists and the ~/.gitconfig file doesn’t.








网友评论