zoukankan      html  css  js  c++  java
  • gitflow工作流程基本命令使用

    1 基础命令:

    • 初始化: git flow init
    • 开始新Feature: git flow feature start MYFEATURE
    • Publish一个Feature(也就是push到远程): git flow feature publish MYFEATURE
    • 获取Publish的Feature: git flow feature pull origin MYFEATURE
    • 完成一个Feature: git flow feature finish MYFEATURE
    • 开始一个Release: git flow release start RELEASE [BASE]
    • Publish一个Release: git flow release publish RELEASE
    • 发布Release: git flow release finish RELEASE
      别忘了git push --tags
    • 开始一个Hotfix: git flow hotfix start VERSION [BASENAME]
    • 发布一个Hotfix git flow hotfix finish VERSION

    image

    2 Git Flow

    2.1 用途

    大型团队项目中高效快速管理分支(初始化/新建/结束 分支)

    2.2 图示

    gitflow

    2.3 七条指令

    先看参考链接2,然后结合上图,7条指令干了什么一目了然。
    - git flow init
    - git flow feature start xxx
    - git flow feature finish xxx
    - git flow release start 0.1.xx
    - git flow release finish 0.1.xx
    - git flow hotfix start xxx
    - git flow hotfix finish xxx

    3 UI界面

    知道了基本命令的用途后,可以结合git相关的UI界面来快速上手,如git gui和gitk。

    ubuntu可以用非商用免费版的SmartGit,同样支持git-flow。

  • 相关阅读:
    cancel-ng-swipe-right-on-child
    css.day.05.eg
    css.day05
    css.day04.eg
    css.day04
    css.day03.eg
    css.day03
    css.day02.eg
    九月十月百度人搜,阿里巴巴,腾讯华为笔试面试八十题(第331-410题)(转)
    阿里巴巴笔试题选解
  • 原文地址:https://www.cnblogs.com/ldy-blogs/p/10529790.html
Copyright © 2011-2022 走看看