<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++博客   博問  
     
    主站蜘蛛池模板: 色欲A∨无码蜜臀AV免费播| 国产免费人成视频尤勿视频| 青青草无码免费一二三区| 亚洲AV综合色一区二区三区| 182tv免费视频在线观看| 亚洲AV无码不卡在线播放| 三年片在线观看免费大全电影| 色播亚洲视频在线观看| www视频免费看| 久久成人a毛片免费观看网站| 中文字幕亚洲日本岛国片| 国产精品免费αv视频| 亚洲伊人色欲综合网| 久久免费视频精品| 91午夜精品亚洲一区二区三区| 日本人的色道免费网站| 亚洲色欲色欱wwW在线| 免费大学生国产在线观看p| 国产男女爽爽爽免费视频| 久久精品国产亚洲AV麻豆不卡| 中国人xxxxx69免费视频| 亚洲欧美日韩久久精品| 亚洲成aⅴ人片久青草影院| 免费萌白酱国产一区二区三区 | 亚洲AV永久精品爱情岛论坛| 午夜影院免费观看| 一本色道久久综合亚洲精品蜜桃冫| 国产aa免费视频| 中文字幕免费不卡二区| 亚洲av产在线精品亚洲第一站| 小小影视日本动漫观看免费| 免费人成视频在线播放| 亚洲国产一区在线| 精品国产免费一区二区| 两个人看的www高清免费观看| 亚洲伊人久久精品| 亚洲国产综合久久天堂| 免费视频爱爱太爽了| 曰批全过程免费视频观看免费软件 | 九九九精品视频免费| 亚洲日本va午夜中文字幕一区|