返回文章列表文章索引阅读全文
STARBLOG / 阅读手记
团队

Coding Standards and Version Control

https://www.zhihu.com/question/393040445 For merge and release, you can refer to Git Flow. However, if you do Trunk-based Development, this can also be omitted. Author: Jacky Link: https://www.zhihu.com/question/393040445/answer/1215427425 Source: Zhihu Copyright belongs to the author. For commercial reprints please contact the aut

曦远 (DealiAxy)约 6 分钟

For merge and release, you can refer to Git Flow. However, if you do Trunk-based Development, this can also be omitted.

Author: Jacky Link: https://www.zhihu.com/question/393040445/answer/1215427425 Source: Zhihu Copyright belongs to the author. For commercial reprints please contact the author for authorization; for non-commercial reprints please indicate the source.

The main problem our team encountered in development was that when there was a lot of work on the project, the branches became a complete mess. Because we previously used Microsoft’s TFS for management, it was even messier. Later we referred to some open-source project management methods and created a GIT management method: mainly two branches, master and dev. master is always the production environment, dev is always the test environment. After testing on dev is complete, it is merged into master for release. When we need to do new features or bugfixes, we create some milestones and tasks, and branch off from dev, with the naming method “internal number/main”. Programmers then branch their own feature branches from main. After programmers finish their features, they send a pull request to a reviewer, and only then can it be merged into the main branch. When all features are done, we PR-merge main into dev and run automated tests. Then when releasing to the test environment, we put a TAG on it as the version number, for example 1.1.0, then Jenkins automatically tests and builds in the background. This can avoid the tested program not being 100% equal to the version that will be released, because too many programmers built it themselves and then delivered it, causing all kinds of problems. Manual testing; if there are no problems, schedule a date to go live; if bugs appear, run the process again and TAG a new version, for example 1.1.1. Before going live to production, merge dev into master.

_EOF_

Coding Standards and Version Control

本文作者:
程序设计实验室
版权声明:
本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

相关文章

StarBlog博客开发笔记:前端开发之导航守卫

路由对象router给我们提供了beforeEach方法,可以在每次路由之前进行一些相关处理,也叫导航守卫,我们这里就通过导航守卫实现一些类似身份认证的辅助功能。 修改router/index.js文件,添加导航守卫,在每次路由时判断用户会话是否过期。如果登录有效且跳转的是登录界面,就直接路由到主页;如果是非登录页面且会话过期,就跳到登录页面要求登录。 代码如下 router.beforeEach

2023-07-14 · StarBlog前端开发-Vue · 约 1 分钟

讨论

共 0 条

良言一句三冬暖,恶语伤人六月寒。

加载评论中…