How to package git update in a zip file from the same branch?

The command:

git archive -o changes.zip HEAD -- $(git diff --diff-filter=AMCR --name-only <from_sha>..HEAD

where <from_sha> is the actual hash value from Git.

While there is a way to diff different branch and create another package, it would be easily managed when you put all commit in the same branch.  So I recommend you to put it all in one branch first and then bundle it. 

Comments

Popular posts from this blog

TCPDF How to show/display Chinese Character?

[轉]放手的愛

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services