軟件是對質量的不懈追求

          Git: Branch from a tag

          In git, you can’t update a tag directly, but you can branch the code to create a new tag. Here’s how you would do that:

          First, you need to checkout the tag:

          git checkout <tag_name> 

          Then create a branch:

          git branch -b <branch_name>

          After you make your changes, commit them (there are a few ways to do this, keeping it simple):

          git commit -am 'my descriptive comment on this commit'

          You can create a new tag:

          git tag <new_tag_name>

          Then you can push the tag:

          git push --tags

          posted on 2010-01-08 08:37 BlakeSu 閱讀(1102) 評論(0)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 林周县| 嵊州市| 宣威市| 波密县| 紫阳县| 贵溪市| 清水县| 沽源县| 博罗县| 湘西| 常州市| 贵溪市| 分宜县| 莒南县| 博乐市| 泸州市| 闽侯县| 顺平县| 岳西县| 延吉市| 阿拉善盟| 宁阳县| 调兵山市| 阿巴嘎旗| 安宁市| 隆昌县| 巍山| 南康市| 黔西| 龙泉市| 咸宁市| 体育| 喀喇沁旗| 襄樊市| 丘北县| 榆林市| 昭苏县| 巴楚县| 竹北市| 和静县| 洮南市|