Skip to content

Instantly share code, notes, and snippets.

@hrstt
Forked from func09/git-diff-zip.sh
Created October 30, 2011 22:12
Show Gist options
  • Save hrstt/1326520 to your computer and use it in GitHub Desktop.
Save hrstt/1326520 to your computer and use it in GitHub Desktop.
Gitで特定のコミットからの差分ファイルだけ抜き出してZipにする
git archive --format=zip --prefix=projectname/ HEAD `git diff --name-only <commit>` -o archive.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment