Skip to main content

A small python program to export files changed between git commits or branches to a zip file retaining the directory structure.

Project description

gitzip

Export all the changed files between two git commits or branches to a zip file including the directory structure.

Usage

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 file.

Installation

To install use pythons package index:

python -m pip install gitzip

License

This program can be used by anyone since it is licensed under Mozilla Public License Version 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitzip-1.0.0.tar.gz (3.4 kB view hashes)

Uploaded source

Built Distribution

gitzip-1.0.0-py3-none-any.whl (9.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page