Posted By

berkes on 02/02/10


Tagged

tar tags git


Versions (?)

make a tarball of only the changed directories in a git repos, since last tag.


 / Published in: PHP
 

make a tarball of only the changed directories in a git repos, since last tag. replace {tagnamelast} with any name you siwh to give the tarball replace {tagnameprevious} with a git reference (like a tag) from which you want to zip the changes.

  1. tar -czf {tagname_next}.tar.gz `git diff --name-only {tagname_previous}`

Report this snippet  

You need to login to post a comment.