Skip to content

Instantly share code, notes, and snippets.

@lmazardo
Last active June 2, 2017 13:55
Show Gist options
  • Save lmazardo/67f4e477c7633d56c0d7cf4c2c7d0f9e to your computer and use it in GitHub Desktop.
Save lmazardo/67f4e477c7633d56c0d7cf4c2c7d0f9e to your computer and use it in GitHub Desktop.

File : <repository>/.git/config or $HOME/.gitconfig

[diff "odf"]
  textconv = odt2txt
  binary = true
  

If setting previous configuration in $HOME/.gitconfig, just add the following

[core]
  attributesfile = $HOME/.config/git/info/attributes

File : <repository>/.gitattributes or $HOME/.config/git/info/attributes

*.ods diff=odf
*.odt diff=odf
*.odp diff=odf

From link

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