The simplest way to mark a file as binary is to unset the diff attribute in the .gitattributes file: *.ps -diff This will cause Git to generate Binary files differ (or a binary patch, if binary patches are enabled) instead of a regular diff.