git bug分支流程

背景

1
正式版本1.0.0发布后,发现bug,需创建bug分支,进行修补

从master分支中分出分支fixbug-1.0.0

1
git checkout -b fixbug-1.0.0 master

修复分支,并提交

切换到master分支

1
git checkout master

合并到master分支

1
git merge --no-ff fixbug-1.0.0 

做标签

1
git tag -a 1.0.1

切换到develop分支

1
git checkout develop

合并到develop分支

1
git merge --no-ff fixbug-1.0.0

删除该bug分支

1
git branch -d fixbug-1.0.0

推送到远程仓库

1
2
3
git push origin master
git push origin develop
git push origin 1.0.1
作者

苏同

发布于

2017-09-28

更新于

2017-09-28

许可协议