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


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


    網站導航:
     
    主站蜘蛛池模板: 无码毛片一区二区三区视频免费播放| 免费萌白酱国产一区二区| 久久亚洲精品无码| 日本在线高清免费爱做网站| 亚洲av日韩精品久久久久久a| 又大又硬又爽又粗又快的视频免费| 国产91精品一区二区麻豆亚洲| 亚洲欧美日韩中文二区| 伊人久久亚洲综合| 一二三四在线观看免费高清中文在线观看 | 老司机福利在线免费观看| 亚洲国产天堂久久综合| 最近2018中文字幕免费视频| 亚洲av无码有乱码在线观看| 亚洲AV无码一区东京热久久 | 国产一区二区三区在线免费观看 | 84pao强力永久免费高清| 老司机免费午夜精品视频| 亚洲蜜芽在线精品一区| 亚洲国产精品嫩草影院久久| 性xxxxx免费视频播放| 97国免费在线视频| 亚洲乱妇熟女爽到高潮的片| 亚洲AV无码成人网站久久精品大| 在线观看特色大片免费网站| 伊人久久亚洲综合影院首页| 亚洲精品乱码久久久久久久久久久久| 两个人www免费高清视频| 亚洲日韩精品无码专区| 亚洲处破女AV日韩精品| 亚洲av无码成人精品区在线播放 | 84pao强力永久免费高清| 美女一级毛片免费观看| 亚洲av无码电影网| 亚洲尹人香蕉网在线视颅| 在线观看国产区亚洲一区成人 | 日韩免费视频网站| 毛片大全免费观看| 最近中文字幕mv免费高清在线| 亚洲一卡2卡4卡5卡6卡在线99| 国产在线国偷精品产拍免费|