Skip to content

Instantly share code, notes, and snippets.

@danpetitt
Created June 30, 2023 11:42
Show Gist options
  • Save danpetitt/42e44a590a12588f7b8bc507fff06db9 to your computer and use it in GitHub Desktop.
Save danpetitt/42e44a590a12588f7b8bc507fff06db9 to your computer and use it in GitHub Desktop.
Git on WSL sometimes get files with file permissions changed

Sometimes, when using Windows WSL to edit projects, Git will report a file permissions change.

You cannot fix, change, remove or do anything with these files and it causes issues when pulling.

Just do this:

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