-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git flow #52
Comments
Informative blogs about git flow
|
My proposal has no impact on Git flow (branch model), it simply encourages team members to use rebase as much as possible to handle conflicts and reduce the creation of merge commits. Below, I will list the reasons for doing this, rebase vs merge (focusing only on the (efficiency) differences in team collaboration, not on differences such as commit graph):
Below are some commands that are helpful for a workflow based on rebase:
Below are some suggestions for organizing commits:
|
An example of |
Then should we choose |
Since this does not affect our team's collaboration efficiency, we should consider whether to use |
Based on my previous discussion, I suggest using rebase to resolve conflicts in newly created PR. @Magickbase/developers Does anyone have any other suggestions? |
I suggest that we first consider
What's the current workflowThe diff view of GitHub is the most frequently used before a PR has been merged, and I think the diff view is more close to a "merge" workflow since it diff a whole PR instead of each commit. Does rebase lower the mental load?Maybe not. AFAIK, the most git user starts by the Dose we have to support multiple version delivery?Most likely not. The clear history graph that Is the additional merge commit a disturbance?Maybe yes, maybe no. When the answer is
So what's the problem?I think it is the not good enough arrangement. When a new PR that would change a lot, and there was another large PR working on in the PR list
Therefore, I suggest that the merge method in a working PR or branch could follow personal habits, while the merge of PR to main should be handled as long as there is a unified rule, it doesn't matter if it is merge/squash/rebase |
If you are referring to tools used during the review process, there should be no constraints. However, I believe that most developers in the frontend ecosystem use one of the following:
The core purpose is to make it easier, faster, and more reassuring for reviewers to read PRs, which will improve the efficiency of merging PRs and increase the likelihood of errors being pointed out in PRs. I believe that there are two important factors that contribute to the ability to quickly review PRs:
I think this statement is basically correct and does not conflict with my views:
It's not about reducing the mental burden of the PR creator, but about reducing the mental burden of the reviewer, and the cost of doing so is completely worth it.
Regarding the action of merging PRs, I also tend to merge rather than rebase + merge, but I haven't thought about it too much.
During the review, it is a distraction (the reason is stated in #52 (comment)), but when it becomes history, it may be an advantage, as I mentioned earlier. Therefore, my suggestion is to use rebase when resolving conflicts, and either solution is acceptable when merging PRs, as they do not involve my core goal (improving the quality and efficiency of reviews).
I don't think I understand the statement here.
I agree with splitting PRs and merging them as soon as possible, but this does not conflict with the idea of using rebase to resolve conflicts. Both should be done simultaneously, as they will both improve the quality and efficiency of PR reviews. |
Proposed by @WhiteMinds
The text was updated successfully, but these errors were encountered: