Skip to content

Instantly share code, notes, and snippets.

@arcostasi
Created October 28, 2019 13:06
Show Gist options
  • Save arcostasi/5fedf97809b69b443a304141a4bace81 to your computer and use it in GitHub Desktop.
Save arcostasi/5fedf97809b69b443a304141a4bace81 to your computer and use it in GitHub Desktop.
How to set Git to ignore chmod changes

If you want a git repository to ignore permission changes (chmod),

type the following command into the Terminal while inside the git repository:

git config core.filemode false

It is usually possible to do this for all git repositories at once, instead of going one-by-one.

This is done by using the following command inside the Terminal (no need to be inside a git repository for this command):

git config --global core.filemode false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment