軟件是對質量的不懈追求

          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 閱讀(1105) 評論(0)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 平江县| 崇文区| 类乌齐县| 滁州市| 白银市| 金昌市| 凤阳县| 行唐县| 阿坝| 平阳县| 峨眉山市| 五寨县| 清镇市| 德安县| 河南省| 凌源市| 定陶县| 清新县| 道真| 巧家县| 咸丰县| 思茅市| 苍梧县| 杭锦旗| 呼和浩特市| 宁河县| 德清县| 洛南县| 永安市| 化隆| 晴隆县| 平邑县| 剑川县| 鹿泉市| 洛宁县| 白水县| 运城市| 龙门县| 宜宾县| 丹东市| 巴彦县|