# !/bin/bash
if [ $# -ne 3 ]; then
echo "Usage: git diff-zip <archive_name> <oldCommit> <newCommit>"
exit 1
fi
git archive --format=zip --prefix=$1/ $3 `git diff --name-only $2 $3` -o ../$1.zip
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme