Last active
March 30, 2020 06:05
-
-
Save oxo-yuta/11a94f209c3eb11f86a7bd55dce0c30b to your computer and use it in GitHub Desktop.
Gitで特定のブランチとの差分ソースをZipで出力する。 ref: https://qiita.com/Yuta_spade/items/fa95464af579417a552b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git archive --format=zip --prefix=root/ HEAD `git diff --name-only MyBranch` -o archive.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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