<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 閱讀(1069) 評論(0)  編輯  收藏 所屬分類: Git


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


    網站導航:
     
    主站蜘蛛池模板: 免费看一级做a爰片久久| 俄罗斯极品美女毛片免费播放| 国产l精品国产亚洲区在线观看| 免费亚洲视频在线观看| 日产乱码一卡二卡三免费| 色偷偷噜噜噜亚洲男人| 永久免费bbbbbb视频| 精品在线免费视频| 亚洲狠狠爱综合影院婷婷| 一级毛片免费不卡| 亚洲国产成人片在线观看无码| 成全在线观看免费观看大全| 亚洲第一精品在线视频| 在线观看免费av网站| 亚洲av无码片区一区二区三区| 最近的免费中文字幕视频| 亚洲色大成网站www久久九| 国产免费无遮挡精品视频 | 最近的中文字幕大全免费版| 亚洲中文字幕无码av| 国产免费久久精品| 99久久免费国产精精品| 久久亚洲精精品中文字幕| 西西大胆无码视频免费| 青青草97国产精品免费观看| 亚洲国产精品一区二区成人片国内 | 成人性生交视频免费观看| 相泽南亚洲一区二区在线播放| 亚洲七七久久精品中文国产| 久草免费手机视频| 亚洲欧洲日韩国产一区二区三区| 免费看国产精品麻豆| 久久久久免费精品国产小说| 亚洲男人的天堂网站| 亚洲午夜久久久久久噜噜噜| 色se01短视频永久免费| 国产大片免费天天看| 亚洲永久在线观看| 亚洲人JIZZ日本人| 成人免费视频小说| 免费日本一区二区|