List Conflicted Git Files

Last modified: 
Thursday, April 9th, 2015
Topics: 
Git

Find conflicted files with git diff

You can use this command to the conflicted files in a bad git merge.

git diff --name-only --diff-filter=U

Create an alias for the command

You can also create a global alias for this command as follows.

git config --global alias.conflicts "diff --name-only --diff-filter=U"

The alias is called like this:

git conflicts

References


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.