code路漫漫

Git Flow分支模型知识点汇总

2018-06-28  本文已影响237人  趁你还年轻233

主要包括以下几个关键词:

About

✨git-flow是一个用来进行高级repo操作的git 扩展集合,它是Vincent Driessen分支模型的一种实现。
关键词:branch 模型

Basic tips

✨Git flow提供了非常好的命令行和输出,可以认真阅读去思考到底发生了什么...
✨OSX和Windows客户端Sourcetree是一个实现了git-flow的非常好用的git客户端。
✨Git-flow是以一个合并解决方案。(merge based solution)
✨GIt-flow不会重新设置功能分支。

关键词:Sourcetree 分支合并方案 branch不可重置
补充:webstorm下的git-flow插件叫做Git Flow Integration

Setup

✨OSX $ brew install git-flow-avh
✨Linux $ apt-get install git-flow
✨Windows $ wget -q -O - --no-check-certificate https://raw.github.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh install stable | bash

Getting started

✨Git flow需要初始化,这样repo才会引入git-flow分支模型。
✨在git repo目录下初始化,git flow init
✨输入git flow init之后,需要按照对方的stdout回答一些问题,问题回答完后,git-flow就初始化好了

Features

✨为新版本开发新特性
✨仅仅存在developers repo
✨从branch分支开始写新feature

Make a ralease

✨支持发布预生产
✨允许微小bug修复并且为release准备meta-data

git flow release publish RELEASE
✨创建后允许其他开发者提交需要发布release brach。

Hotfixes

✨Hotfix是为了快速解决线上版本的bug而存在的
✨可能从标记生产环境版本的tag中分离出单独的分支。

Commands

Backlog

✨'support'特性还在实验中,可以根据建议方式使用

参考资料:https://danielkummer.github.io/git-flow-cheatsheet/index.html

上一篇 下一篇

猜你喜欢

热点阅读