Mar 52018

ADM

Git ignore file mode chmod changes

  • March 5 2018
  • ADM

 

 

Git ignore file mode chmod changes - git

 

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