-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitattributes
More file actions
60 lines (50 loc) · 1.16 KB
/
Copy path.gitattributes
File metadata and controls
60 lines (50 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Git attributes for cross-platform compatibility
# 跨平台兼容性的 Git 属性配置
# Auto-detect text files and normalize line endings to LF
# 自动检测文本文件并将换行符规范化为 LF
* text=auto eol=lf
# Shell scripts - always use LF (critical for bash execution)
# Shell 脚本 - 始终使用 LF(bash 执行必需)
*.sh text eol=lf
*.bash text eol=lf
# Python scripts
*.py text eol=lf
# JavaScript/TypeScript
*.js text eol=lf
*.ts text eol=lf
*.jsx text eol=lf
*.tsx text eol=lf
*.mjs text eol=lf
*.cjs text eol=lf
# JSON/YAML config files
*.json text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
# Markdown documentation
*.md text eol=lf
# Git config files
.gitignore text eol=lf
.gitattributes text eol=lf
# Docker files
Dockerfile text eol=lf
*.dockerfile text eol=lf
docker-compose*.yml text eol=lf
# CI/CD config
.github/**/* text eol=lf
.travis.yml text eol=lf
.gitlab-ci.yml text eol=lf
# Explicitly binary files (no conversion)
# 明确的二进制文件(不转换)
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
*.zip binary
*.tar.gz binary
*.tgz binary
*.woff binary
*.woff2 binary
*.ttf binary
*.eot binary