git config --global core.autocrlf [true|false|input] // default false
git add --renormalize .
git rm --cached -r .
git reset --hard
Last active
August 4, 2023 05:07
-
-
Save abcprintf/804dfd97000d13c4dc3c492179b2b070 to your computer and use it in GitHub Desktop.
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
# Auto-detect text files, ensure they use LF. | |
* text=auto eol=lf | |
# These files are always considered text and should use LF. | |
# See core.whitespace @ https://git-scm.com/docs/git-config for whitespace flags. | |
*.php text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4 diff=php | |
*.json text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4 | |
*.test text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4 | |
*.yml text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=2 | |
# Exclude non-essential files from dist | |
/tests export-ignore | |
.github export-ignore | |
.php_cs export-ignore | |
.travis.yml export-ignore | |
appveyor.yml export-ignore | |
phpunit.xml.dist export-ignore | |
/phpstan/* export-ignore | |
/phpstan/rules.neon -export-ignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment