Happens when working on a team project when two/more developers have edited the same file.
Therefore, face the conflict courageously.
Assumption: current_branch(local branch) conflicts with a base branch called base-branch
git pull origin --rebase develop. If merge conflicts persist:- Fix merge conflicts by accepting either
current changes,incoming changesorAccept both changes git add .all the changes that you have made.git rebase --continueto continue fixing merge conflicts.- If merge conflict persists, repeat steps 2 to 4.
- If merge conflict is fixed then
git push -f current_branch.