Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
7zip 往往比 tar.gz 或 zip 压缩得更好,但git archive只支持这两种相当古老的格式。
git archive
有什么简单的方法可以将git archivecompress 输出为 7zip?
使用git archive master | xz -z > archived.xz. 注意xz和7z使用相同的压缩算法。然后,您可以使用xz -d.
git archive master | xz -z > archived.xz
xz
7z
xz -d