Skip to content

Instantly share code, notes, and snippets.

@tiijima
Created May 11, 2016 01:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tiijima/3e64aaac492fea262ca28827af4039a1 to your computer and use it in GitHub Desktop.
git .gitattributes binary バイナリファイルとして扱う

git .gitattributes

バイナリファイルとして扱う

.gitattributesファイルを追加して以下のように記載すれば対象のファイルをbinaryファイルとして扱うようになる。

*.pbxproj binary

補足的な

改行の問題とかその辺りで、よくファイルをcheckoutしても即変更状態になってしまう場合がある。 困ったことに、以下のコマンドでCRLFを無視しても発生する場合がある。

git config --global core.autoCRLF false

そんな時に、binaryファイルとして扱うようにすることによって回避できる。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment