Skip to content

Instantly share code, notes, and snippets.

@andersonmadeira
Created October 31, 2018 21:00
Show Gist options
  • Save andersonmadeira/0d083f5162e82932db8f2ce0c053f6eb to your computer and use it in GitHub Desktop.
Save andersonmadeira/0d083f5162e82932db8f2ce0c053f6eb to your computer and use it in GitHub Desktop.
Gerar um zip com arquivos modificados desde commit
# Gera um zip, preservando hierarquia, de todos os arquivos modificados desde o commit do hash informado até o HEAD
git diff --name-only f631445f61cc117bad4852e8f9633888f406644d HEAD | tar -czf mudancas.tgz -T -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment