Using Git Flow based on Github

本文介绍如何使用Git Flow工作流进行版本控制管理。通过安装配置Git Flow,设置不同的分支策略来支持开发、发布及修复等工作。文章提供了创建特性分支、完成特性开发并合并到主分支的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Using Git Flow based on Github
1. Install git-flow
>sudo port install git-flow

2. First configuration
>git flow init
>git flow init
Which branch should be used for bringing forth production releases?
- master
Branch name for production releases: [master]
Branch name for "next release" development: [develop]

How to name your supporting branch prefixes?
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? []

Small features.
>git flow feature start rest-read-api

Or

>git checkout -b feature/rest-read-api develop

>git flow feature finish rest-read-api

Or

>git checkout develop
>git merge --no-ff rest-read-api - merges the branch to develop
>git branch -d rest-read-api - delete the local branch
>git push origin develop - push develop

Release branch
>git flow release start v1.0


References:
http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/
https://github.com/nvie/gitflow/wiki/Mac-OS-X
http://www.slideshare.net/shuky.dvir/git-workflow-with-gitflow
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值