SyntaxFix
Write A Post
Hire A Developer
Questions
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