Git is pretty good at identifying binary files, but you can explicitly specify which files are binary. Create a .gitattributes
file in the project root containing:
*.png binary
binary
is a built-in macro attribute equivalent to -diff -merge -text
.