Skip to content

Instantly share code, notes, and snippets.

@derFunk
Created March 3, 2025 12:54
Show Gist options
  • Save derFunk/198a1d34a1c8c676d8a71bd6b35228ce to your computer and use it in GitHub Desktop.
Save derFunk/198a1d34a1c8c676d8a71bd6b35228ce to your computer and use it in GitHub Desktop.
Set `git config core.filemode false` to all subdirectories which are local git repositories
find . -type d -name ".git" -exec sh -c 'echo "Setting core.filemode=false in $(dirname {})" && git -C "$(dirname {})" config core.filemode false' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment