<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


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


    網站導航:
     
    主站蜘蛛池模板: 亚洲成AV人片久久| 亚洲成熟xxxxx电影| 亚洲色无码专区一区| 亚洲成a人无码av波多野按摩 | 国产成人精品免费直播| 亚洲日日做天天做日日谢| 好吊妞788免费视频播放| 亚洲男人的天堂网站| 日韩一区二区三区免费体验| 国产精品亚洲精品久久精品 | 美女视频黄的全免费视频| 亚洲综合久久成人69| 国产免费的野战视频| 亚洲天堂男人影院| 最新中文字幕免费视频| 国产亚洲综合一区二区三区| 亚洲精品和日本精品| 久久久久久成人毛片免费看| 亚洲成电影在线观看青青| 在线A级毛片无码免费真人| 黄色毛片免费在线观看| 亚洲色欲一区二区三区在线观看| 久久成人免费电影| 亚洲人成电影网站| 免费永久看黄在线观看app| 久久国产精品免费一区二区三区| 成人免费无遮挡无码黄漫视频| 亚洲欧美在线x视频| 国产亚洲A∨片在线观看| 18观看免费永久视频| 久久久久久亚洲av无码蜜芽| 国产精品亚洲不卡一区二区三区| 久久国产精品免费观看| 精品久久久久久亚洲精品| 国产午夜免费福利红片| 久久久久成人片免费观看蜜芽| 亚洲永久网址在线观看| 亚洲午夜久久久久久久久电影网| 无码人妻一区二区三区免费手机| 亚洲免费日韩无码系列| 亚洲国产精品张柏芝在线观看|