GIT 如何设置 .gitconfig 将 *.woff 文件识别为二进制文件
GIT how to set .gitconfig to recognize *.woff files as binary
如何设置.gitconfig 来识别*.woff 文件?
我尝试:
*.eot binary
*.ttf binary
*.woff binary
*.woff2 binary
但我有
fatal: bad config file line 15 in .git/config
你能帮帮我吗?
提前致谢。
您需要使用
创建一个文件 .gitattributes
(与存储库中 .gitignore 文件相同的位置)
*.eot binary
*.ttf binary
*.woff binary
*.woff2 binary
只需添加到@uhausbrand 的回答,将这个缺少的扩展名 *.otf 添加到 .gitattributes
文件。那么最后的结果会是这样的:
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary
如何设置.gitconfig 来识别*.woff 文件? 我尝试:
*.eot binary
*.ttf binary
*.woff binary
*.woff2 binary
但我有
fatal: bad config file line 15 in .git/config
你能帮帮我吗? 提前致谢。
您需要使用
创建一个文件.gitattributes
(与存储库中 .gitignore 文件相同的位置)
*.eot binary
*.ttf binary
*.woff binary
*.woff2 binary
只需添加到@uhausbrand 的回答,将这个缺少的扩展名 *.otf 添加到 .gitattributes
文件。那么最后的结果会是这样的:
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary