Last active
April 12, 2022 14:11
-
-
Save williamluisan/b8f9c5bcd14fdcee52773151dbf48f4d to your computer and use it in GitHub Desktop.
Git compare commit and make archive.
This file contains hidden or 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
## Archive between tag | |
git archive -o <app_name>v<version>.zip HEAD $(git diff v<version> v<version> --name-only) | |
## Archive on specific commit | |
git archive -o <app_name>v<version>.zip HEAD $(git diff COMMIT~ COMMIT --name-only) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment