Skip to content

Instantly share code, notes, and snippets.

@Hugoberry
Forked from SeanSobey/.gitattributes
Created February 11, 2020 22:49
Show Gist options
  • Save Hugoberry/398dea0321db341860f1f46cd5bdd724 to your computer and use it in GitHub Desktop.
Save Hugoberry/398dea0321db341860f1f46cd5bdd724 to your computer and use it in GitHub Desktop.
Git to diff zip (or any compressed) files. See this (https://tante.cc/2010/06/23/managing-zip-based-file-formats-in-git/) article.
*[7z,.xz,.bzip2,.gzip,.tar,.zip,.wim,.ar,.arj,.cab,.chm,.cpio,.cramfs,.dmg,.ext,.fat,.gpt,.hfs,.ihex,.iso,.lzh,.lzma,.mbr,.msi,.nsis,.ntfs,.qcow2,.rar,.rpm,.squashfs,.udf,.uefi,.vdi,.vhd,.vmdk,.wim,.xar,.z] diff=archive
[diff "archive"]
textconv = 7z -so e
binary = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment