Git / Basics / Resolve Conflict
Resolve Conflict
-
STEPS
Conflict between the "dev" and "master" when merging from dev to master
1 Checkout the Target Branch:
2 Pull the Latest Changes:git checkout master
3 Checkout the Source Branch:git pull origin master
4 Merge the Target Branch into Source Branch:git checkout dev
5 Resolve Conflicts: Mark as Resolved:git merge master
6 Complete the Merge:git add
7 Commit the Changes:git merge --continue
8 Push the Changes:git commit -m "Merge changes from master into dev" git push origin dev