-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitattributes
49 lines (41 loc) · 1001 Bytes
/
.gitattributes
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
# 根据 core.autocrlf 进行转换(LF 或 CRLF)
# 建议 Windows 配置 `git config --global core.autocrlf true`
# 建议 macOS 和 Linux 配置 `git config --global core.autocrlf input`
* text=auto
# 脚本依赖于系统,强制使用 LF 或 CRLF
*.sh text eol=lf
*.bat text eol=crlf
*.ps1 text eol=crlf
######## 特定语言,例如C++ ########
# Sources
*.c text=auto diff=cpp
*.cc text=auto diff=cpp
*.cxx text=auto diff=cpp
*.cpp text=auto diff=cpp
*.cpi text=auto diff=cpp
*.c++ text=auto diff=cpp
*.hpp text=auto diff=cpp
*.h text=auto diff=cpp
*.h++ text=auto diff=cpp
*.hh text=auto diff=cpp
# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary
# Precompiled Headers
*.gch binary
*.pch binary
# Compiled Dynamic libraries
*.so binary
*.dylib binary
*.dll binary
# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary
# Executables
*.exe binary
*.out binary
*.app binary