Git ignore file mode chmod changes

  • 22 March 2020
  • ADM

 

Git ignore file mode chmod changes - images/logos/git.jpg

 

Recently I came across to a situation using git on ubuntu. After a chmod -R 777 on my repository all files appear to be changed.

To make git ignore file mode changed with chmod run the following command:

# git config core.fileMode false

Adding the --global flag will make it be the default behaviour for the logged in user.

# git config --global core.fileMode false

 

References