Archive changed files in git repo


git diff-tree -r --name-only \
    `git rev-list --parents HEAD | egrep "^[a-f0-9]{40}$"`..HEAD | \
    tar -zcvf kero.tgz --files-from -

Leave a Reply

Your email address will not be published. Required fields are marked *