Stay Hungry,Stay Foolish!

gitflow

concept

https://www.cicd.sh/2022/05/01/using-gitflow-in-cicd/

 

 

https://juejin.cn/post/6978300325086101518?share_token=9FB3D1CD-6482-4B45-A02F-A374967CD9DA&tt_from=weixin&utm_source=weixin&utm_medium=toutiao_ios&utm_campaign=client_share&wxshare_count=1

 

Git命令的进阶和复习

https://www.toutiao.com/article/6835043118782349831/?app=news_article&timestamp=1706411589&use_new_style=1&req_id=20240128111309850BAC684436AE4788C4&group_id=6835043118782349831&share_token=07EC7A9C-90DB-494A-BB98-BCF768354BBA&tt_from=weixin&utm_source=weixin&utm_medium=toutiao_ios&utm_campaign=client_share&wxshare_count=1&source=m_redirect

  • git rebase
  • git merge
  • git reset
  • git revert
  • git cherry-pick
  • git fetch
  • git pull
  • git reflog

工作流程

https://www.toutiao.com/article/6822537733244715534/?app=news_article&timestamp=1706408438&use_new_style=1&req_id=20240128102038D927AB87E4EF04437148&group_id=6822537733244715534&share_token=83A3EBF4-F078-42D7-9169-6F4FE083AE31&tt_from=weixin&utm_source=weixin&utm_medium=toutiao_ios&utm_campaign=client_share&wxshare_count=1&source=m_redirect&wid=1706495442003

Gitflow工作流程中永远存在两个分支:master和develop。

  • master分子是生产分支,一旦改变即意味着有新的版本;
  • develop分支是日常开发分支,永远保持最新代码,当该分支的代码稳定到可以发布的时候,要merge到master分支,并tag上版本号。
  • feature分支,从develop分支来,最终到develop分支去。主要为将来的一个【未知的新版本】开发新特性,只要这个feature还在开发,这个分支就存在,最终被merge到develop分支,成为新版本的一个新feature,或者被弃用。
  • release分支,从develop分支来,最终要合并到develop和master分支。主要是为新版本发布做准备,如小bug的修复和为发布准备元数据。这样develop分支上,还能继续接受下一个大版本的feature。
  • hotfix是发生在release finish之后的。比如你发布了v1.2.1,也就是说merge到了master分支。然后发现有bug,就在master分支上,开hotfix分支,hotfix/v1.2.2,fix bug之后,发布hotfix,也就是说把hotfix/v1.2.2 merge到master分支

 

posted @ 2024-01-31 16:42  lightsong  阅读(3)  评论(0编辑  收藏  举报
Life Is Short, We Need Ship To Travel