Created
April 2, 2012 14:56
-
-
Save betweenbrain/2284129 to your computer and use it in GitHub Desktop.
Git command to export only changed files between two commits
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
git archive --output=file.zip HEAD $(git diff --name-only SHA1 SHA2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some weird reason, when I try
tar -zcf
(attempting to generate a gzipped version) it just doesn't save all the affected files. However, if I usetar -rf
it does work as intended.Any idea why that is ocurring?