You need to have SketchTool installed somewhere in your path.
Add this in your ~/.gitconfig
file (for some reason, it won't work in a local .gitconfig file):
[diff "sketchtool"]
textconv = "sketchtool dump"
cachetextconv = true
binary = true
and then add this in your local or global .gitattributes
file:
*.sketch diff=sketchtool
Now, whenever you modify a .sketch file in your repo, running git diff
will produce a nice text diff like this:
Thanks for sharing this. One thing I've run into is many changes that appear to be unrelated to the change I made. In fact, to test this out I just changed the border radius on a single rectangle and can't find the change in the tool. Any suggestions?