美文网首页
gitflow使用

gitflow使用

作者: cong | 来源:发表于2015-09-10 09:51 被阅读0次

一、主分支Master
提供给用户使用的正式版本
二、开发分支Develop
git checkout -b develop master
生成代码的最新隔夜版本(nightly)
Develop分支发布到Master分支的命令:

切换到Master分支

git checkout master

对Develop分支进行合并

git merge --no-ff develop
三、临时性分支
这三种分支都属于临时性需要,使用完以后,应该删除,使得代码库的常设分支始终只有Master和Develop。
四、 功能分支
git checkout -b feature-x develop
git checkout develop
git merge --no-ff feature-x
git branch -d feature-x
五、预发布分支
指发布正式版本之前(即合并到Master分支之前)
git checkout -b release-1.2 develop

git checkout master
git merge --no-ff release-1.2

对合并生成的新节点,做一个标签

git tag -a 1.2

git checkout develop
git merge --no-ff release-1.2

六、修补bug分支
git checkout -b fixbug-0.1 master

git checkout master
git merge --no-ff fixbug-0.1
git tag -a 0.1.1

git checkout develop
git merge --no-ff fixbug-0.1

git branch -d fixbug-0.1

七、删除某个远程分支
git push origin :serverfix
八、打TAG并提交到服务器
git tag [name]
创建远程版本(本地版本push到远程): git push origin [name]

相关文章

  • gitFlow工作流程和分支命名规范

    gitFlow工作流程使用 一张图看懂gitFlow流程 gitFlow流程常用分支 master develop...

  • Git Flow的基本使用

    GitFlow 工具和流程 使用Git作为版本控制工具 使用GitFlow流程管理控制版本 分支说明 项目长期分支...

  • gitflow使用

    一、主分支Master提供给用户使用的正式版本二、开发分支Developgit checkout -b devel...

  • Gitflow使用

    1.安装 2.使用

  • gitflow 使用

    参考:https://www.cnblogs.com/myqianlan/p/4195994.html

  • gitflow安装使用

    arch linux -- git flow window 这里你需要wget 和 util-linux Ubun...

  • gitflow 工具使用

    一. git-flow 前情提要 model: http://nvie.com/posts/a-successfu...

  • Gitflow 使用指北

    代码管理是整个项目管理周期中重要的一环,而代码管理是始终围绕版本发布流程而制定的,今天讨论的Gitflow就是一种...

  • 2018-11-29-前端git-flow开发

    项目开发使用gitflow流程 一、安装扩展:http://danielkummer.github.io/git-...

  • 移动端git管理规范

    一、GitFlow Git的分支管理规范我们参考GitFlow, GitFlow是由荷兰程序员Vincent Dr...

网友评论

      本文标题:gitflow使用

      本文链接:https://www.haomeiwen.com/subject/axcwtttx.html