Skip to content

Instantly share code, notes, and snippets.

@carlosascari
Created November 19, 2021 23: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 carlosascari/5ebb0bdb4f418cb1ce48db4c92cbcaa0 to your computer and use it in GitHub Desktop.
Save carlosascari/5ebb0bdb4f418cb1ce48db4c92cbcaa0 to your computer and use it in GitHub Desktop.
Copies files and their dir structure that are modified into a gzip compressed file
git diff --no-commit-id --name-only | tar -czf modified_files.tgz -T -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment