-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitattributes
99 lines (86 loc) · 2.29 KB
/
.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# .gitattributes for Python-Files
# Check https://github.com/alexkaratarakis/gitattributes for More Informations
# Video Tutorial is available at https://www.youtube.com/watch?v=2E_ICZagmj4
# Auto Detect text-Files and perform LF Normalizations
* text=auto
#
# The above will handle all files NOT found below
#
# text/documents/latex files
*.md text diff=markdown
*.csv text
*.tab text
*.tsv text
*.tex text diff=tex
*.info text
*.bibtex text diff=bibtex
# also treat all serialization file as text
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text
# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as an asset (text) by default.
*.svg text
# If you want to treat it as binary, use the following line instead.
# *.svg binary
*.eps binary
# Scripts
# lf = line feeds, used by most *.nix for end-line charecter
# cr = carriage return used as crlf in windows operating system
*.sh text eol=lf
*.bash text eol=lf
*.fish text eol=lf
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
# Archives
*.7z binary
*.gz binary
*.tar binary
*.tgz binary
*.zip binary
# git should not attempt automatic line feed, diff, and merge attempts for these types of files.
*.pdf -crlf -diff -merge
# microsoft word files
*.xls -crlf -diff -merge
*.doc -crlf -diff -merge
*.ppt -crlf -diff -merge
*.xlsx -crlf -diff -merge
*.docx -crlf -diff -merge
*.pptx -crlf -diff -merge
##---------------------------------------------------
# Python
##---------------------------------------------------
# Basic .gitattributes for a python repo.
# Source files
# ============
*.py text diff=python
*.pxd text diff=python
*.py3 text diff=python
*.pyi text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pyz text diff=python
# Binary files: *.py[cod] is IGNORED in .gitignore
# Make Necessary Changes, and add them as binary - if Required
# ============================================================
*.p binary
*.db binary
*.pkl binary
*.pickle binary
# Note: .db, .p, and .pkl files are associated
# with the python modules ``pickle``, ``dbm.*``,
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
# (among others).
# Jupyter Notebooks
# =================
*.ipynb text