.gitattributes 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ###############################
  2. # Git Line Endings #
  3. ###############################
  4. # Set default behaviour to automatically normalize line endings.
  5. # * text=auto
  6. # 文本文件全部使用lf换行,eslint prettier等工具保持一致。
  7. * text=auto eol=lf
  8. # Force batch scripts to always use CRLF line endings so that if a repo is accessed
  9. # in Windows via a file share from Linux, the scripts will work.
  10. *.{cmd,[cC][mM][dD]} text eol=crlf
  11. *.{bat,[bB][aA][tT]} text eol=crlf
  12. # Force bash scripts to always use LF line endings so that if a repo is accessed
  13. # in Unix via a file share from Windows, the scripts will work.
  14. *.sh text eol=lf
  15. ###############################
  16. # Git Large File System (LFS) #
  17. ###############################
  18. # # Archives
  19. # *.7z filter=lfs diff=lfs merge=lfs -text
  20. # *.br filter=lfs diff=lfs merge=lfs -text
  21. # *.gz filter=lfs diff=lfs merge=lfs -text
  22. # *.tar filter=lfs diff=lfs merge=lfs -text
  23. # *.zip filter=lfs diff=lfs merge=lfs -text
  24. # # Documents
  25. # *.pdf filter=lfs diff=lfs merge=lfs -text
  26. # # Images
  27. # *.gif filter=lfs diff=lfs merge=lfs -text
  28. # *.ico filter=lfs diff=lfs merge=lfs -text
  29. # *.jpg filter=lfs diff=lfs merge=lfs -text
  30. # *.pdf filter=lfs diff=lfs merge=lfs -text
  31. # *.png filter=lfs diff=lfs merge=lfs -text
  32. # *.psd filter=lfs diff=lfs merge=lfs -text
  33. # *.webp filter=lfs diff=lfs merge=lfs -text
  34. # # Fonts
  35. # *.woff2 filter=lfs diff=lfs merge=lfs -text
  36. # # Other
  37. # *.exe filter=lfs diff=lfs merge=lfs -text