How can I create an archive of the current repository including local uncommitted changes using git archive?
git archive
Improving nevsan's answer for my purpose - to archive latest code in any case (committed or not):
uploadStash=`git stash create`; git archive -o code_outgoing.zip ${uploadStash:-HEAD}