Git archive one latest commit
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
one commit - zip archive.zip $(git diff-tree --no-commit-id --name-only -r commit-id) | |
diff between commits - git diff old-commit-id new-commit-id --name-only | xargs tar -zcvf update.tar.gz | |
diff between commits - zip archive.zip $(git diff old-commit-id new-commit-id --name-only) | |
diff between commits (windows/unix) - git archive --format=zip --output=files.zip HEAD $(git diff old-commit-id new-commit-id --name-only) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment