Skip to content

Instantly share code, notes, and snippets.

@mvtenorio
Last active October 27, 2015 16:24
Show Gist options
  • Save mvtenorio/a94e94710076101e8082 to your computer and use it in GitHub Desktop.
Save mvtenorio/a94e94710076101e8082 to your computer and use it in GitHub Desktop.
Command to get all the modified files between two commits and copy them to another folder
git diff --name-only --diff-filter=AMRT sha1 sha2 | xargs tar cvf - | (cd ~/destination/; tar xfp -)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment