'Azure dev ops conflict merge
So we have a code repo in Azure Dev Ops and two people working on the project. Being used to TFS we are adapting to Dev Ops and Git. My co worker has commited and pushed three commits over the current code base. Meanwhile I have changed multiple files and have four commits to push into DevOps.
My co worker has left and I need to sort out the repo to get it back on track
All advice gratefully received. Will be looking at how I merge all of these files. Please be gentle I am a newbie at Git and more used to TFS Thanks
Solution 1:[1]
Take a look at the documentation Resolve merge conflicts
In short:
- You'll be informed of the merge conflict(s) when you pull changes or attempt to merge two branches.
2. The conflict notification appears. Click the Conflicts link to start resolve file conflicts.
(source: microsoft.com)
- This will bring up a list of files with conflicts. Selecting a file lets you accept the changes in the source branch you are merging from with the Take Source button or accept the changes in the branch you are merging into using Keep Target. You can manually merge changes by selecting Merge, then entering the changes directly into the merge tool specified in your Git settings.
- Use the checkboxes next to the lines modified to select between remote and local changes entirely, or edit the results directly in the Result editor under the Source and Target editor in the diff view.
- When done making changes, click Accept Merge . Repeat this for all conflicting files.
- Open the Changes view in Team Explorer and commit the changes to create the merge commit and resolve the conflict.
(source: microsoft.com)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Glorfindel |