Last Updated: February 25, 2016
·
253
· jhuet

Tarball of files modified between two GIT commits

Don't have any continuous delivery system ? Have to deliver a small fix and not a big release ? Just want a tarball with the modified files in between 2 commits ? There you go !

git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT COMMIT1~..COMMIT2 | xargs tar -rf release.tar