目次
使い方
参考:
.gitattributes による改行コードの変換設定 | 理系学生日記
.gitattributes はどこにあるのか? いつ適用されるのか? – スタック・オーバーフロー
the .gitattributes file – Pablo Reyes – Medium
attributes 設定ファイルの場所
参考:
.gitattributes による改行コードの変換設定 | 理系学生日記
.gitattributes はどこにあるのか? いつ適用されるのか? – スタック・オーバーフロー
Where should I place my global ‘gitattributes’ file? – Stack Overflow
改行コードの扱い
参考:
.gitattributes で改行コードの扱いを制御する – Qiita
.gitattributes による改行コードの変換設定 | 理系学生日記
.gitattributes の eol=crlf は改行コードを CRLF に変換してチェックインするものではない | standards for me
Dealing with line endings – User Documentation | GitHub
What is the purpose of `text=auto` in `.gitattributes` file? – Stack Overflow
safecrlf
参考:
git config の core.safecrlf って何のためよ? | 必ず隣あり
バイナリかどうかを Git はどのようにして判定しているか?
最初の 8,000 バイトにヌル文字 (0x00
) が含まれていればバイナリと判定する。
参考:
How to determine if Git handles a file as binary or as text? – Stack Overflow
buffer_is_binary – git/xdiff-interface.c at v2.19.1 · git/git – GitHub
githooks
参考:
Prevent large text file from being added to commit when using GitHub – Stack Overflow
フォントファイル用の設定
# .gitattributes * text text=auto *.svg text eol=lf *.eot binary *.ttf binary *.woff binary *.woff2 binary
参考:
アイコンフォントを git 管理するとファイルが破損するときの対応方法 | jMatsuzaki
『Failed to decode downloaded font』から始まるエラー | ts0818 のブログ
fonts/.gitattributes at master · Microsoft/fonts – GitHub
Git LFS の設定
参考:
.gitattributes で Git LFS の適用をディレクトリごとに変更する | MSeeeeN
.attributes 参考例
参考:
『Failed to decode downloaded font』から始まるエラー | ts0818 のブログ
My default .gitattributes – bjrmatos – GitHub Gist
core/.gitattributes at master · dotnet/core – GitHub
Unity
参考:
How to Git with Unity | thoughtbot
alexkaratarakis/gitattributes/Unity.gitattributes – GitHub
nemotoo/.gitattributes – .gitattributes for Unity3D with git-lfs – GitHub Gist