Search This Blog

Thursday, December 8, 2011

How to do a “git export” From Command Line


git archive

git archive master | tar -x -C /somewhere/else

If you want a compressed archive .

git archive master | bzip2 >source-tree.tar.bz2

ZIP archive

git archive --format zip --output /full/path/to/zipfile.zip master

No comments: