How can I git archive an arbitrary branch?

Posted by rpflo on Stack Overflow See other posts from Stack Overflow or by rpflo
Published on 2010-05-26T16:42:04Z Indexed on 2010/05/27 6:11 UTC
Read the original article Hit count: 195

Filed under:
git checkout master
git archive stage | tar -czf archive.tar.gz htdocs
# archives master because it's checked out.

How can I archives the stage branch, regardless of the current I'm on?

© Stack Overflow or respective owner

Related posts about git