Skip to content

Instantly share code, notes, and snippets.

@oxo-yuta
Last active March 30, 2020 06:05
Show Gist options
  • Save oxo-yuta/11a94f209c3eb11f86a7bd55dce0c30b to your computer and use it in GitHub Desktop.
Save oxo-yuta/11a94f209c3eb11f86a7bd55dce0c30b to your computer and use it in GitHub Desktop.
Gitで特定のブランチとの差分ソースをZipで出力する。 ref: https://qiita.com/Yuta_spade/items/fa95464af579417a552b
git archive --format=zip --prefix=root/ HEAD `git diff --name-only MyBranch` -o archive.zip
git archive --format=zip HEAD `git diff develop --name-only --diff-filter=AM` -o archive.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment