Susan Potter

How can I show only the files containing merge conflicts?

To show only the files containing merge conflicts in Git, you can use the git diff command with the --name-only and --diff-filter options.

Here's the command you can use:

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


This command will output a list of file names that have conflicts. You can then use this list to resolve the conflicts in those files.

If you enjoyed this content, please consider sharing via social media, following my accounts, or subscribing to the RSS feed.

If you are interested in low cost shared hosting with SSH access and Git repositories, I can recommend Hostinger which I use too (if you click on the link I will get a commission). You can use the coupon code BUSINESS10 to get 10% off the longer term Business plans (the one I chose too).