Tweak git ignore and attributes (#618)

* Update .gitignore

Avoid unwanted system files.

* Create .gitattributes

Enforce preferred line ending style.
This commit is contained in:
Andrew
2021-10-23 17:20:02 +01:00
committed by GitHub
parent a7d46af771
commit 3428513d6e
2 changed files with 21 additions and 0 deletions

13
.gitattributes vendored Normal file
View File

@@ -0,0 +1,13 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Files that will always have UNIX line-endings LF rather than Windows-style CRLF.
*.css text eol=lf
*.js text eol=lf
*.md text eol=lf
*.svg text eol=lf
*.xml text eol=lf
# Denote all files that are truly binary and should not be modified.
# (binary is a macro for -text -diff)
*.png binary

8
.gitignore vendored
View File

@@ -1 +1,9 @@
# OS files #
._*
.DS_Store
.Spotlight-V100
.Trashes
Thumbs.db
# Other files #
/node_modules/