Skip to content

Instantly share code, notes, and snippets.

@bmsterling
Created September 7, 2012 16:31
Show Gist options
  • Save bmsterling/3667589 to your computer and use it in GitHub Desktop.
Save bmsterling/3667589 to your computer and use it in GitHub Desktop.
Export only changed files between two commits with folder structure for git
tar czf new-files.tar.gz `git diff <COMMITIDFROM> <COMMITIDTO> --name-only`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment