Git如何将打了某个Tag的文件全部导出?
PHPz
PHPz 2017-04-21 10:56:59
0
2
800

如题,比如某个版本我打了 1.0 的 tag,我想导出 1.0 所有的文件,如何操作?

PHPz
PHPz

学习是最好的投资!

reply all(2)
PHPzhong

If your tag name is 1.0, you can export it as follows.

1. Export and compress to zip format:

$ git archive --format=zip --output=v1.0.zip 1.0

2. Export and compress to tar.bz2 format:

$ git archive 1.0 | bzip2 > v1.0.tar.bz2

3. Export and compress to tar.gz format:

$ git archive --format=tar 1.0 | gzip > v1.0.tar.gz
巴扎黑

View existing tags
git tag -l

Switch to a certain tag
git checkout tag_name

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template