Updated on 2024-11-14 GMT+08:00
How Do I Resolve Local Code File Conflicts?
Symptom
On the details page of an MR, the message Unresolved is displayed.
Analysis
The same file is modified by two users and a conflict is reported when an MR is merged.
Solution
- Update the code and switch to the source branch of this MR.
git fetch origin git checkout -b feature_010 origin/feature_010
- Merge the target branch into the source branch.
git merge origin/master
- Manually resolve conflicts locally as prompted.
- Commit code to the remote repository after conflicts are resolved.
git add . git commit -m'Commit information' git push origin feature_010
- Refresh the page and continue to review the MR.
Parent topic: Merge Request
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot