项目作者: sambacha

项目描述 :
git-attributes configurations and generator
高级语言: JavaScript
项目地址: git://github.com/sambacha/gitattributes.git
创建时间: 2020-09-22T19:55:21Z
项目社区:https://github.com/sambacha/gitattributes

开源协议:Other

下载


gitattributes

Overview

.gitattributes to configure your git repo

Usage

  1. # gitattributes
  2. + *.build text
  3. + *.cs text diff=csharp
  4. + *.csproj text
  5. + *.dll binary
  6. + *.dtd text
  7. + *.html text diff=html
  8. + *.java text diff=java
  9. + *.md text
  10. + *.nuspec text
  11. + *.rng text
  12. + *.rngc text
  13. + *.sh eol=lf
  14. + *.bash eol=lf
  15. + *.zsh eol=lf
  16. + *.shfbproj text
  17. + *.sln text
  18. + *.snk binary
  19. + *.xml text
  20. + *.xsd text
  21. + *.xsl text
  22. + *.yml text
  23. .gitattributes text
  24. KEY text
  25. LICENSE+ * text
  26. # text files
  27. + *.docx diff=word
  28. # date
  29. date+ *.txt filter=dater
  30. # merges
  31. # // git config --global merge.ours.driver true
  32. database.xml merge=ours
  33. # merge driver custom
  34. + package-lock.json merge=npm-merge-driver
  35. + npm-shrinkwrap.json merge=npm-merge-driver
  36. # image formats
  37. + *.png diff=exif
  38. + *.jpg diff=exif
  39. + *.svg diff=exif
  40. # gpg related
  41. + *.gpg filter=gpg diff=gpg
  42. + *.asc filter=gpg diff=gpg
  43. # git archive
  44. test/ export-ignore
  45. # git encryption
  46. + secrets.txt filter=git-crypt diff=git-crypt
  47. # create new definitions for each file. You can also add patterns in the following way:
  48. + *.key filter=git-crypt diff=git-crypt
  49. + secretdir/+ * filter=git-crypt diff=git-crypt

Examples

  1. $ npx npm-merge-driver install
  2. npx: installed 52 in 1.953s
  3. npm-merge-driver: npm-merge-driver installed to `git config --local` and .git/info/attributes
  4. workstation~ /Users/sbacha/sambacha-solidity-coverage master
  5. $ cat .git/info/attributes
  6. npm-shrinkwrap.json merge=npm-merge-driver
  7. package-lock.json merge=npm-merge-driver

LICENSE

SPDX-License-Identifier: ISC/Apache-2.0