Skip to content

Instantly share code, notes, and snippets.

@func09
Created October 29, 2011 06:24
Show Gist options
  • Save func09/1324169 to your computer and use it in GitHub Desktop.
Save func09/1324169 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