Merge case (you’re merging main into your branch, and want your branch everywhere)
git checkout --ours $(git diff --name-only --diff-filter=U) && git add -A && git commit -m "Resolve conflicts preferring branch changes" && git push
git checkout --ours $(git diff --name-only --diff-filter=U) && git add -A && git commit -m "Resolve conflicts preferring branch changes" && git push
No comments to display
No comments to display