Skip to content

Commit 9fa3c2d

Browse files
authored
Set up .gitattributes for line endings and file types
Configured line endings and specified file types for text handling. Added export-ignore rules for specific files.
1 parent 6adbc6e commit 9fa3c2d

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Force LF line endings
2+
* text=auto eol=lf
3+
4+
# Set file types
5+
*.php text
6+
*.sh text eol=lf
7+
*.md text
8+
*.yml text
9+
*.json text
10+
*.xml text
11+
*.env text
12+
13+
# Exclude tests and dev files from export
14+
phpunit.xml export-ignore
15+
phpcs.xml export-ignore
16+
php-cs-fixer.dist.php export-ignore
17+
.dockerignore export-ignore
18+
composer.lock export-ignore
19+
20+
README.md export-ignore
21+
CHANGELOG.md export-ignore

0 commit comments

Comments
 (0)