Skip to main content

Deep archive command for git

Features

  • Archive a git repository with all sub-modules.
  • Specify a tag or ref of the repository to archive.

Installation

You can install Git Archive Deep via pip from PyPI:

$ pip install git-archive-deep

or via uv as a tool:

$ uv tool install git-archive-deep

Usage

Let's say you have a repository in a directory MyTool/ and you want to archive version 2.1, which is tagged v2.1.

git archive-deep v2.1 ./MyTool

This will create a zip file named MyTool-v2.1.zip that contains the repository along with its sub-modules.

This tool is similar to git-archive-all, but it allows you to specify a git ref instead of archiving the currently checked out commit. It is really just simple wrapper around Git that calls git archive <ref> . in the repository directory, but then reads .gitmodules (if it exists), determines the SHA1 for each sub-module using git rev-parse (calling git rev-parse v2.1:path/to/submodule will print the SHA1 for the commit that is checked out in submodule located at path/to/submodule for version v2.1), and then just calls itself for each sub-module recursively, merging each archive into the main repo.

License

Distributed under the terms of the [MIT license][license], Git Archive Deep is free and open source software.

Metadata

Release files for git-archive-deep 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-archive-deep 0.1.3
File Size Uploaded Provenance Actions
git_archive_deep-0.1.3.tar.gz 5.3 kB Without provenance Details for git_archive_deep-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for git-archive-deep 0.1.3
File Interpreter ABI Platform Actions
git_archive_deep-0.1.3-py3-none-any.whl Python 3 none any Details for git_archive_deep-0.1.3-py3-none-any.whl

Total release size: 9.9 kB

Release files / git_archive_deep-0.1.3.tar.gz

Download URL git_archive_deep-0.1.3.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
64e857beeb05ca08b6e5f9168e88bf23ae6c7cc4a09a1bb14c988d7351bba986
BLAKE2b-256 checksum
How to use checksums
cf6cb6fd1022547d1d4fbe5037f201b1ac280c7ffa2e7516c0585fb7282acb19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / git_archive_deep-0.1.3-py3-none-any.whl

Download URL git_archive_deep-0.1.3-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5853dd7ffc537d7fab305fcc81c44d51dd6329e2a4581f6ca795057aea358c4
BLAKE2b-256 checksum
How to use checksums
4a503bef0d2595fa98dd0deeb8e9bb97362352cd4dbf0c4673cc414e42a6d5bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for git-archive-deep 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page