A small python program to export files changed between git commits or branches to a zip file retaining the directory structure.
Export all the changed files between two git commits or branches to a zip file including the directory structure.
Navigate into your repositorys base directory. Then exeucte the following command.
python -m gitzip export.zip 0c321f2 master
This will create a
export.zip file containing all files that changed between commit
0c321f2 and the current
master branch. The files will have the contents of the current
master. If the changed files are in a directory, this directory is created in the zip
To install use pythons package index:
python -m pip install gitzip
This program can be used by anyone since it is licensed under Mozilla Public License Version 2.0.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.