Xcode Source Control shows all files as changed

After moving Xcode project folder to a new Mac, git Source Control shows all project files as changed.

git diff "filename" on one of the files shows that the differences are detected in file permissions.

The issue was resolved by changing the global git config file to ignore permissions:

  • git config --global core.filemode false

If git config --list shows core.filemode more than once, it means you have multiple git config files.

You can verify the active value:

  • git config core.filemode

To find, which specific config file contains which value:

  • git config --local --get core.filemode
  • git config --global --get core.filemode
  • git config --system --get core.filemode

So, if your local git config contains conflicting value, you can run:

  • git config --global core.filemode false

January 2025
Oxford, Oxfordshire

Leave a Reply

Your email address will not be published. Required fields are marked *

Share the Post:

Related Posts