-
Notifications
You must be signed in to change notification settings - Fork 87
Home
git-archive-all.sh
is a simple bash shell script that runs git-archive
in the current directory, then finds all git submodules beneath the current working directory and runs git-archive
for each of them, too. By default, the utility will then create one “super archive” of the entire directory hierarchy.
Most options available in git-archive
supported. See below for details.
The following sections are a pseudo-manual. The most up-to-date information is always available by running
git-archive-all.sh --help
The simplest use of this script is:
cd $GIT_DIR; git-archive-all.sh
Since different submodules may be at different commits, git-archive-all.sh
always supposes you want the HEAD of the superproject and all its submodules. That is, there is no provision to provide git-archive-all.sh
with a different tree-ish parameter to pass along to git-archive
. This might cause surprise if your submodule’s working copy is different from its HEAD.