Is there a way to resolve conflict for all files using checkout --ours and --theirs? I know that you can do it for individual files but couldn\'t f
--ours
--theirs
function gitcheckoutall() { git diff --name-only --diff-filter=U | sed 's/^/"/;s/$/"/' | xargs git checkout --$1 }
I've added this function in .zshrc file.
Use them this way: gitcheckoutall theirs or gitcheckoutall ours
gitcheckoutall theirs
gitcheckoutall ours