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
相关推荐
zh_xuan7 小时前
诡异Bug:输入框删除字符,却越删越多
android·bug
胡小禾7 小时前
Git Worktree
git
程序员小羊!8 小时前
18 GIt
git
怣疯knight8 小时前
Git 本地分支关联远程分支 常用命令汇总
git
ANNENBERG8 小时前
git分支开发管理
git
坤坤藤椒牛肉面8 小时前
GIT的使用
git
w3296362718 小时前
使用 OpenCode 在 Windows 上加速安装 Playwright 的完整指南
windows·git
我家媳妇儿萌哒哒1 天前
git:无法推送refs到远端。您可以试着运行“拉取”功能,整合您的更改。
git
绘梨衣5471 天前
采集基类设计遇到的描述符bug
爬虫·python·bug
不吃鱼的羊1 天前
达芬奇工具Bug
bug