Skip to content

Commit a05923e

Browse files
committed
Add .gitattributes
1 parent f351c8c commit a05923e

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.gitattributes

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# --- Text and line endings ---
2+
# Force all text files to use LF line endings
3+
* text=auto eol=lf
4+
5+
# --- Java source files ---
6+
*.java text diff=java
7+
8+
# --- Gradle files ---
9+
*.gradle text
10+
*.gradle.kts text
11+
gradlew text eol=lf
12+
gradlew.bat text eol=crlf
13+
14+
# --- Configuration / properties ---
15+
*.xml text
16+
*.yml text
17+
*.yaml text
18+
*.properties text
19+
20+
# --- Scripts ---
21+
*.sh text eol=lf
22+
*.bat text eol=crlf
23+
24+
# --- Markdown / documentation ---
25+
*.md text
26+
*.adoc text
27+
28+
# --- Ignore generated binaries and archives ---
29+
*.jar binary
30+
*.war binary
31+
*.ear binary
32+
*.class binary
33+
34+
# --- Images / media ---
35+
*.png binary
36+
*.jpg binary
37+
*.jpeg binary
38+
*.gif binary
39+
*.ico binary
40+
*.svg text
41+
42+
# --- Misc ---
43+
*.pdf binary
44+
*.zip binary
45+
*.tar.gz binary
46+
47+
# --- IntelliJ / IDE project files ---
48+
*.iml text
49+
*.ipr text
50+
*.iws text
51+
52+
# --- Optional: Custom diff drivers (if configured in .git/config) ---
53+
# For better Java diffs (requires git config setup)
54+
# diff=java defined in .git/config

0 commit comments

Comments
 (0)