Skip to content

Instantly share code, notes, and snippets.

@carolynvs
Last active March 5, 2019 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carolynvs/e6e5067e7922c6c27172121f3f48ef92 to your computer and use it in GitHub Desktop.
Save carolynvs/e6e5067e7922c6c27172121f3f48ef92 to your computer and use it in GitHub Desktop.
Configure Diffs for Sketch Files
  1. Add the following line to your ~/.bash-profile
    export PATH=$PATH:"$(mdfind kMDItemCFBundleIdentifier == 'com.bohemiancoding.sketch3' | head -n 1)/Contents/Resources/sketchtool/bin/"
    
  2. Add the following lines to your ~/.gitconfig
    [diff "sketchtool"]
      textconv = "sketchtool dump"
      cachetextconv = true
      binary = true
    
  3. Add the follow lines to the project's (or your global) .gitattributes file
    *.sketch diff=sketchtool
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment