Skip to content

Commit b20f530

Browse files
Merge pull request Ashishkumbhar01#43 from CodeWithSushil/master
Add .gitattributes
2 parents 2dfa4f5 + 81be3ca commit b20f530

File tree

3 files changed

+58
-5
lines changed

3 files changed

+58
-5
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

.gitattributes

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Normalize text files (LF endings for consistency)
2+
*.php text eol=lf
3+
*.js text eol=lf
4+
*.css text eol=lf
5+
*.html text eol=lf
6+
*.md text eol=lf
7+
*.json text eol=lf
8+
*.yml text eol=lf
9+
*.xml text eol=lf
10+
11+
# Treat binary files properly
12+
*.jpg binary
13+
*.png binary
14+
*.gif binary
15+
*.ico binary
16+
*.woff binary
17+
*.woff2 binary
18+
*.ttf binary
19+
*.eot binary
20+
*.mp4 binary
21+
*.pdf binary
22+
23+
# Prevent diffing of lock files and minified files
24+
composer.lock -diff
25+
LICENSE -diff
26+
27+
28+
# Exclude files from `git archive` (useful when packaging a release)
29+
.env export-ignore
30+
/tests export-ignore
31+
/.github export-ignore
32+
/.gitignore export-ignore
33+
/.gitattributes export-ignore
34+
/vendor export-ignore
35+
/example export-ignore

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)