Whisher Whisher - 1 month ago 18
Git Question

GIT how to set .gitconfig to recognize *.woff files as binary

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.

Answer

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

Comments