Skip to content

Instantly share code, notes, and snippets.

@ytkhs
Created June 24, 2013 06:43
Show Gist options
  • Select an option

  • Save ytkhs/5848137 to your computer and use it in GitHub Desktop.

Select an option

Save ytkhs/5848137 to your computer and use it in GitHub Desktop.
gitで差分だけをzipにする
$ git archive --format=zip --prefix=dir/ HEAD `git diff <commit> --name-only` -o ~/output.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment