首页 > 其他 > 详细

Git tag输出

时间:2014-09-24 12:00:57      阅读:350      评论:0      收藏:0      [点我收藏+]

Git tag输出操作

  1. 查看存在的tag
    • git tag -l
  2. 切换到某个tag(加入tag名为tag_1.0)
    • git checkout tag_1.0
  3. 导出并压缩为zip格式
    • git archive --format=zip --output=tag_1.0.zip tag_1.0
  4. 导出并压缩为tar.bz2格式
    • git archive tag_1.0 | bzip2 > tag_1.0.tar.bz2
  5. 导出并压缩为tar.gz格式
    • git archive --format=tar tag_1.0 | gzip > tag_1.0.tar.gz

 

git打包当前代码库(all 表示所有分支)

git bundle create bundle_name --all

bundle_name可被当做repo使用进行clone

Git tag输出

原文:http://www.cnblogs.com/meshinestar/p/3990203.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!