軟件是對質量的不懈追求

          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)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 同心县| 禄劝| 集贤县| 卫辉市| 湘潭县| 晋江市| 海原县| 沿河| 建瓯市| 邻水| 凤翔县| 土默特左旗| 延长县| 温泉县| 鄂尔多斯市| 米泉市| 定西市| 民勤县| 宕昌县| 年辖:市辖区| 双鸭山市| 陆川县| 京山县| 开化县| 嘉荫县| 呼图壁县| 平邑县| 林西县| 盈江县| 依兰县| 扎囊县| 仙居县| 金塔县| 锡林郭勒盟| 观塘区| 濉溪县| 剑阁县| 巴楚县| 大洼县| 阿拉善盟| 孙吴县|