Skip to content
Snippets Groups Projects
.gitattributes 1.04 KiB
Newer Older
  • Learn to ignore specific revisions
  • # Set the default behavior, in case people don't have core.autocrlf set.
    * text=auto
    
    # Explicitly specify line endings for as many files as possible.
    # People who (for example) rsync between Windows and Linux need this.
    
    # File types which we know are binary
    
    
    # Treat SVG files as binary so that their contents don't change due to line
    # endings. The contents of SVGs must not change from the way they're stored
    # on assets.scratch.mit.edu so that MD5 calculations don't change.
    *.svg binary
    
    
    # Prefer LF for most file types
    
    *.frag text eol=lf
    *.htm text eol=lf
    *.html text eol=lf
    *.iml text eol=lf
    *.js text eol=lf
    *.js.map text eol=lf
    *.json text eol=lf
    
    *.jsx text eol=lf
    
    *.md text eol=lf
    *.vert text eol=lf
    *.xml text eol=lf
    
    *.yml text eol=lf
    
    
    # Prefer LF for these files
    .editorconfig text eol=lf
    .eslintrc text eol=lf
    .gitattributes text eol=lf
    .gitignore text eol=lf
    .gitmodules text eol=lf
    LICENSE text eol=lf
    Makefile text eol=lf
    README text eol=lf
    TRADEMARK text eol=lf
    
    # Use CRLF for Windows-specific file types