Skip to content

Instantly share code, notes, and snippets.

@r-martins
Created July 4, 2012 12:47
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 r-martins/3047159 to your computer and use it in GitHub Desktop.
Save r-martins/3047159 to your computer and use it in GitHub Desktop.
Adicionando arquivos de um commit específico para um .tar
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $commit_id | xargs tar -rf mytarfile.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment