The name is
Mike Myat Min Han aka 'mmhan'.

I am a developer, mostly do development on Javascript, PHP and CakePHP alongside some development work on C, C++, Obj-C, C# and AS. I also have a thing for Python.

I post here all sorts of crap that I find worthy of sharing: Quotes, Jokes and Notes.

You can check out my blog and follow me on twitter.


Posts tagged git


Text

May 6, 2011
@ 5:50 pm
Permalink

1 note

Creating a zip of modified or created files in GIT

So, how do you create a zip file of all the files that was changed to deploy?

Easy does it as answered by Jefromi:

git archive -o [PATH] [NewCommit] $(git diff --name-only [OldCommit] [NewCommit])

So it may goes like:

git archive -o ../latest.zip HEAD $(git diff --name-only 2f646b HEAD)