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.

Download files

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

Source Distribution

git_archive_deep-0.1.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_archive_deep-0.1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file git_archive_deep-0.1.3.tar.gz.

File metadata

  • Download URL: git_archive_deep-0.1.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for git_archive_deep-0.1.3.tar.gz
Algorithm Hash digest
SHA256 64e857beeb05ca08b6e5f9168e88bf23ae6c7cc4a09a1bb14c988d7351bba986
MD5 89596be9809739271b4b3c3d90569570
BLAKE2b-256 cf6cb6fd1022547d1d4fbe5037f201b1ac280c7ffa2e7516c0585fb7282acb19

See more details on using hashes here.

File details

Details for the file git_archive_deep-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: git_archive_deep-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for git_archive_deep-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5853dd7ffc537d7fab305fcc81c44d51dd6329e2a4581f6ca795057aea358c4
MD5 9255a81f427cf7149cd87988c8571ca8
BLAKE2b-256 4a503bef0d2595fa98dd0deeb8e9bb97362352cd4dbf0c4673cc414e42a6d5bd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page