<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Chan Chen Coding...

    Git Tag Release

    How do you 'mark' 'tag' or 'release' a particular set of revisions for a particular set of files so you can always pull that one later?

    Using the git tag command.

    To simply "tag" the current revision, you would just run..

    git tag -a thetagname 
    git tag -a 0.1
    git tag -a 2.6.1-rc1 -m 'Released on 01/02/03'

    To list the current tags, simply run git tag with no arguments, or -l (lower case L):

    $ git tag -a thetagname # and enter a message, or use -m 'My tag annotation' 
    $ git tag -l thetagname

    To delete a tag, you use the -d flag:

    $ git tag -d thetagname  Deleted tag 'thetagname' 
    $ git tag [no output]

    To tag a specific (previous) commit, you simply do..

    git tag [tag name] [revision SHA1 hash] 

    For example:

    git tag 1.1.1 81b15a68c6c3e71f72e766931df4e6499990385b 


    Note: by default, git creates a "lightweight" tag (basically a reference to a specific revision). The "right" way is to use the -a flag. This will launch your editor asking for a tag message (identical to asking for a commit message, you can also use the -m flag to supply the tag message on the command line). Using an annotated tag creates an object with its own ID, date, tagger (author), and optionally a GPG signature (using the -s tag). For further information on this, see this post

    git tag mytagwithmsg -a -m 'This is a tag, with message' 

    And to list the tags with annotations, use the -n1 flag to show 1 line of each tag message (-n245 to show the first 245 lines of each annotation, and so on):

    $ git tag -l -n1 mytagwithmsg    This is a tag, with message 



    -----------------------------------------------------
    Silence, the way to avoid many problems;
    Smile, the way to solve many problems;

    posted on 2012-04-13 11:43 Chan Chen 閱讀(1057) 評論(0)  編輯  收藏 所屬分類: Git


    只有注冊用戶登錄后才能發表評論。


    網站導航:
    博客園   IT新聞   Chat2DB   C++博客   博問  
     
    主站蜘蛛池模板: 亚洲Av熟妇高潮30p| 日韩在线免费电影| 亚洲日韩aⅴ在线视频| 特级毛片在线大全免费播放| 免费一级毛片不卡不收费| 欧洲美熟女乱又伦免费视频| 一本色道久久综合亚洲精品蜜桃冫| 特级av毛片免费观看| 又粗又硬又大又爽免费视频播放| 久久久亚洲欧洲日产国码农村| 亚洲精品乱码久久久久久蜜桃图片| 十八禁视频在线观看免费无码无遮挡骂过 | 99视频在线免费| 亚洲一区二区三区首页| 99免费视频观看| 亚洲免费在线视频播放| 无码视频免费一区二三区| 精品亚洲成A人在线观看青青| 中文字幕在线免费观看| 亚洲午夜国产精品| 中文字幕乱码系列免费| 亚洲午夜久久久精品影院| 日本人的色道免费网站| 亚洲中文字幕乱码一区| 在线a亚洲v天堂网2018| 久久精品免费一区二区三区| 亚洲综合男人的天堂色婷婷| 麻豆国产精品入口免费观看| 和老外3p爽粗大免费视频| 亚洲精品乱码久久久久久下载 | 免费看一级一级人妻片 | 亚洲中文字幕无码一区| 国产精品亚洲色图| 女人毛片a级大学毛片免费| 日韩在线观看视频免费| 亚洲三级电影网址| 国产色爽免费视频| 亚洲JLZZJLZZ少妇| 亚洲国产精品无码久久久秋霞2 | 亚洲精品第五页中文字幕| 波多野结衣免费一区视频|