zoukankan      html  css  js  c++  java
  • git tag

    1 list all the tags

    git tag

    2 search tag for a particular pattern

    git tag -l 'v1.8.5*'

    3 create tag

    1)lightweight tag  -- pointer to a commit

    git tag v1.4-lw

    2)annotated tag -- store as objects: tagger name, email,date, message

    -a 选项 建立annotated tag 

     git tag -a v1.4 -m 'my version 1.4'

    4  tagging later

    git tag -a tag名称  commit

    git tag -a v1.2 9fceb02

    5 sharing tag

    git push origin v1.5

    git push origin --tags

    6 checking out tag

    git checkout -b [branchname] [tagname]

    git checkout -b version2 v2.0.0

  • 相关阅读:
    MRO C3算法 super的运用
    约束 抛异常
    反射
    Ubuntu
    Vim
    Vim
    Arithmetic
    Docker-常用命令
    Docker
    Docker-LAMP开发环境
  • 原文地址:https://www.cnblogs.com/Eastsong/p/4993182.html
Copyright © 2011-2022 走看看