Skip to content

Instantly share code, notes, and snippets.

@SeanSobey
Last active November 4, 2022 08:57
Show Gist options
  • Save SeanSobey/a9b3d5b184046336e004ac7ee13b8d85 to your computer and use it in GitHub Desktop.
Save SeanSobey/a9b3d5b184046336e004ac7ee13b8d85 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
@1kastner
Copy link

Thanks @SeanSobey for sharing!

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