PigRider Blogs

Sign In
HTML CSS Javascript Ruby on Rails C++ Java Python SQL Git Linux Others All

Make Git ignore mode changes (chmod).

[Author: Dingyu]   [Mon, 2015-01-05, 14:31]   [3130 views]


Use the command below to make Git ignore the mode changes:

git config core.filemode false

Or git config --global core.filemode false set globally

More details from git-config(1): core.fileMode If false, the executable bit differences between the index and the working tree are ignored; useful on broken filesystems like FAT. See git-update-index(1). The default is true, except git-clone(1) or git-init(1) will probe and set core.fileMode false if appropriate when the repository is created.