Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Git Workflow demonstration and what are the three working methods

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

In this article Xiaobian for you to introduce in detail the "Git workflow demonstration and what are the three ways of work", the content is detailed, the steps are clear, the details are handled properly, I hope this article "Git workflow demonstration and what are the three ways of work" can help you solve your doubts, the following follows the editor's ideas slowly in depth, together to learn new knowledge.

Centralized workflow (rarely used)

A centralized workflow, like SVN, uses a central repository as a single point entity for all modifications to the project. All changes are committed to the Master branch. The main difference between this approach and SVN is that developers have native libraries, but many features of Git are not used.

Forking workflows (occasionally used)

Forking workflow is based on GitFlow and makes full use of the functions of Fork and pull request of Git to achieve the purpose of code review. It is more suitable for developers who manage large teams safely and reliably, and can accept submissions from untrusted contributors. (mainly to review the code of members outside the team, Linux's virtual team uses more).

Occasionally, if there is a need for non-team members to help us solve the problem, we may use it.

GitFlow Workflow (most popular)

Gitflow workflow sets up independent branches for function development, release preparation and maintenance, which makes the release iterative process more smooth and makes full use of the characteristics of the branches. The strict branching model also provides some very necessary structures for large projects. The following figure is a complete diagram of the development method, but the actual development may be more concise:

Git Workflow Demo

Demo instructions:

Create a branch in Eclipse and name it the featureA branch:

The novice completes the A function in the featureA branch, and then submits it to the local library:

Then push to the remote library:

Next, the veteran programmer pulls the project:

After pulling and switching from the master branch to the FeatureA branch, you can see the changes made by the novice:

Next, merge the FeatureA branch and the master branch locally, and then submit them to the remote library:

First switch to master branch → for merge and → push to remote database

After reading this, the article "Git Workflow demonstration and what are the three working methods" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report