Skip to main content

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