/ Published in: PHP
make a tarball of only the changed directories in a git repos, since last tag.
replace {tagname_last} with any name you siwh to give the tarball
replace {tagname_previous} with a git reference (like a tag) from which you want to zip the changes.
replace {tagname_last} with any name you siwh to give the tarball
replace {tagname_previous} with a git reference (like a tag) from which you want to zip the changes.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
tar -czf {tagname_next}.tar.gz `git diff --name-only {tagname_previous}`