Skip to content

Commit

Permalink
Initial commit .gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkolas-irwin committed Nov 16, 2022
1 parent 278c035 commit ca92e50
Showing 1 changed file with 140 additions and 0 deletions.
140 changes: 140 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# Git Attributes

# Set default behavior to automatically normalize line endings
* text=auto encoding=UTF-8

# Force batch scripts to always use CRLF line endings so that if a repo is accessed
# in Windows via a file share from Linux, the scripts will work
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf


# Force bash and zshell scripts to always use LF line endings so that if a repo is accessed
# in Unix via a file share from Windows, the scripts will work
*.sh text eol=lf
*.zsh text eol=lf

# .gitattributes for Microsoft Shell
*.msh text eol=crlf
*.msh1 text eol=crlf
*.msh2 text eol=crlf
*.mshxml text eol=crlf
*.msh1xml text eol=crlf
*.msh2xml text eol=crlf
*.mcf text eol=crlf

# .gitattributes for PowerShell
*.ps1 text eol=crlf
*.ps1x text eol=crlf
*.psm1 text eol=crlf
*.psd1 text eol=crlf
*.ps1xml text eol=crlf
*.pssc text eol=crlf
*.psrc text eol=crlf
*.cdxml text eol=crlf

# .gitattributes for Python
*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pyz text diff=python
*.pyi text diff=python

*.{yaml,[yY][aA][mM][lL]} text eol=lf
*.{yml,[yY][mM][lL]} text eol=lf

# Serialization
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text

# Archives
*.7z binary
*.gz binary
*.tar binary
*.tgz binary
*.zip binary

# Dependency files
package.json text eol=lf
package-lock.json text eol=lf
package-list.txt text eol=lf
requirements.txt text eol=lf
requirements-dev.txt text eol=lf
requirements-test.txt text eol=lf
requirements-lock.txt text eol=lf

# .gitattributes for binary files
*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary export-ignore
*.pyo binary export-ignore
*.pyd binary

# Graphics
*.{jpg,[jJ][pP][gG]} binary
*.{ico,[iI][cC][oO]} binary
*.{png,[pP][nN][gG]} binary
*.{gif,[gG][iI][fF]} binary

# .gitattributes for R
*.Rdata binary
*.RData binary
*.rda binary
*.rdb binary
*.rds binary
*.Rd text
*.Rdx binary
*.Rmd text
*.R text
*.Rproj text
*.[Rr]md linguist-detectable=true

# .gitattributes for SQL
*.sql linguist-detectable=true
*.sql linguist-language=sql

# .gitattributes for document formats
*.bibtex text diff=bibtex
*.{csv,[cC][sS][vV]} text
*.{doc,[dD][oO][cC]} diff=astextplain
*.{docx,[dD][oO][cC][xX]} diff=astextplain
*.{dot,[dD][oO][tT]} diff=astextplain
*.{md,[mM][dD]} text diff=markdown
*.{mdx,[mM][dD][xX]} text diff=markdown
*.{pdf,[pP][dD][fF]} binary
*.{rtf,[rR][tT][fF]} diff=astextplain
*.{tex,[tT][eE][xX]} text diff=tex

# exclude from git archive.
.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore
.editorconfig export-ignore

# .gitattributes for ACL
*.aclscript text eol=crlf

# .gitattributes for VSCode
*.sln text eol=crlf
*.csproj text eol=crlf
*.vbproj text eol=crlf
*.vcxproj text eol=crlf
*.vcproj text eol=crlf
*.dbproj text eol=crlf
*.fsproj text eol=crlf
*.lsproj text eol=crlf
*.wixproj text eol=crlf
*.modelproj text eol=crlf
*.sqlproj text eol=crlf
*.wwaproj text eol=crlf
*.xproj text eol=crlf
*.props text eol=crlf
*.filters text eol=crlf
*.vcxitems text eol=crlf

0 comments on commit ca92e50

Please sign in to comment.