clear conflict git code example
Example 1: git find merge conflicts
git diff --name-only --diff-filter=U
Example 2: git Automatic merge failed; fix conflicts and then commit the result
$ git status
$ git add .
$ git commit -a "Comment"
git diff --name-only --diff-filter=U
$ git status
$ git add .
$ git commit -a "Comment"