How is git going to export all the files that hit a tag?

Source: Internet
Author: User
Tags bz2 tag name

Original URL:

Http://www.myexception.cn/mobile/1828171.html


How git will export all of the files that hit a tag.

http://segmentfault.com/q/1010000000129910

If your tag name is 1.0, you can export it in the following way.

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 the existence of the tag
Git tag-l

Switch to a tag
git checkout tag_name

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.