Git

Git ignore chmod operation

2021-03-10  本文已影响0人  JaedenKil

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.

上一篇下一篇

猜你喜欢

热点阅读