Git Flow04-bug修改流程

bug修改流程

hotfix分支的作用是紧急修复一些Bug。它们都是 从 master分支上建立,修复结束后再合并到 develop和 master 分支上。

  • 第一步:以master分支作为起点,创建一个hotfix分支

    • git checkout -b hotfix-0.1.0 master
    • git commit -m "fix bug"
    • git push origin hotfix-0.1.0
  • 第二步:在hotfix分支上修复Bug,然后提交代码

    • git add .
    • git commit -m "fix bug"
    • git push origin hotfix-0.1.0
  • 第三步:合并hotfix分支到master分支

    • git checkout master
    • git merge --no-ff hotfix-0.1.0
    • git push origin master
  • 第四步:tag打个自增标签作为修复bug版本(在master分支操作)

    • git tag -a v0.1.0fix master
    • git push --tags
  • 第五步:合并hotfix分支到dev分支

    • git checkout dev
    • git merge --no-ff hotfix-0.1.0
    • git push origin dev
  • 第六步:删除hotfix分支

    • 删除本地分支 git branch -d hotfix-0.1.0
    • 删除远程分支 git push origin --delete hotfix-0.1.0
相关推荐
爱学英语的程序员19 小时前
Git 提交 LF will be replaced by CRLF the next time Git touches it 报错
git
qq_3391911420 小时前
服务器git pull每次都要输入密码,linux 设置git登录,linux设置git只输入一次账户密码
git
初圣魔门首席弟子21 小时前
boost配置遇到的bug
bug
一颗小行星!1 天前
快速理解 Git submodule
git
万粉变现经纪人1 天前
如何解决 pip install ta-lib 报错 本地 TA-Lib 库未安装 问题
数据库·python·scrapy·oracle·bug·pandas·pip
A-Jie-Y1 天前
Git基础-核心概念与常用命令
git
夜珀1 天前
Git基础修炼手册:在AtomGit上玩转版本控制
git
golang学习记1 天前
Zed IDE官宣新招:Git Graph 正式支持!
ide·git
要记得喝水1 天前
适用于 Git Bash 的脚本,批量提交和推送多个仓库的修改
git·elasticsearch·bash
AI_Claude_code1 天前
专栏导论:开源项目贡献的价值与Git工作流全景图
git·开源