Skip to content

Instantly share code, notes, and snippets.

@buiquangduc
Created September 3, 2017 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buiquangduc/695ca7822f2cd743b98944a263f88622 to your computer and use it in GitHub Desktop.
Save buiquangduc/695ca7822f2cd743b98944a263f88622 to your computer and use it in GitHub Desktop.
Create archive file save all the files changed between two commit
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