This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git config --global core.eol lf | |
git config --global core.autocrlf input | |
echo "* text=auto eol=lf" > .gitattributes | |
# Find files but exclude .git directory | |
find . -type f ! -path '*/.git/*' | while read -r file; do | |
# Check if the file is a text file | |
if file "$file" | grep -q text; then |