PHPz2017-04-21 10:58:59
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
巴扎黑2017-04-21 10:58:59
View existing tagsgit tag -l
Switch to a certain taggit checkout tag_name