7zip tends to compress a lot better than tar.gz or zip, but git archive only supports these two fairly ancient formats.
Is there any simple way of making output of git archive compress as 7zip?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
git archive master | xz -z > archived.xz. Note thatxzand7zuse the same compression algorithm. You can then unpack it withxz -d.