🔀 Merge request and code review
Merge request flow
- create the braches as mentioned in the branching flow.
- If there is a
short lived user branch, open a merge request from theshort lived user branchto theshort lived master branch. - If there is no
short lived user branch, open a merge request from theshort lived master branchto thelong lived branch. - While creating merge request, ensure to enable the
delete source branch when merge request is acceptedoption. - Collaborate with your team members and leads to review and approve the changes through merge requests. Add comments, push revisions, and get the merge request approved.
Merge Conflict Resolution
- If there are any conflicts identified during the review process, Git will notify you.
- To undo a conflict and start over, you can use the following command:
git merge --abort
- To resolve a conflict, you need to clean up the affected file(s) by manually editing them and choosing the desired changes. It may be necessary to communicate with the team member who handled the conflicting branches/features to determine the required modifications.
tip
If you are using Visual Studio Code, you can utilize the Merge Conflict Editor to simplify the conflict resolution process.