git flow使用

安装git flow

Windows

配合Cygwin使用。Cygwin之下的安装非常简单。执行如下指令即可:

wget -q -O - --no-check-certificate 

https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash

如果没有安装cygwin,先安装=> cygwin使用方法

代码示例

---------------------------------------------------------

使用gitflow

1.初始化
打开git-bash,进入项目文件目录,输入 git flow init
2.开始一个新feature(feature1)
git flow feature start feature1
3. Publish一个Feature(进行修改后,提交到远程,即push)
git flow feature publish feature1
4 . 获取Publish的Feature(切到develop分支, 将feature内容合并到develop)
git flow feature pull origin feature1
5. 完成一个Feature
git flow feature finish feature1
6. 开始一个Release
git flow release start "1.0.0"
7. Publish一个Release

git flow release publish "1.0.0"

8. 发布Release
git flow release finish "1.0.0"
查看版本tag
git tags
1.0.0

更新到远程仓库
$ git push origin develop
$ git checkout master
$ git push origin master
push 标签信息
$ git push --tags

9. 开始一个Hotfix
git flow hotfix start VERSION
10. 发布一个Hotfix
git flow hotfix finish VERSION






gitflow模型介绍

gitflow使用参考


















  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值