2

How to set .gitconfig to recognize *.woff files ? I try with:

*.eot binary
*.ttf binary
*.woff binary
*.woff2 binary

but I've got

fatal: bad config file line 15 in .git/config

Can you help me, please ? Thanks in advance.

Whisher
  • 31,320
  • 32
  • 120
  • 201

2 Answers2

5

You need to create a file .gitattributes (same location as the .gitignore file in your repository) with your

*.eot binary
*.ttf binary
*.woff binary
*.woff2 binary

Please also check .gitattributes documentation

uhausbrand
  • 158
  • 1
  • 8
3

Just add to @uhausbrand answer, to include this missing extension *.otf to .gitattributes file. Then the final result will be like this:

*.eot binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary
hermeslm
  • 1,535
  • 16
  • 13