1

Is there a Git command at the command line that can check for existing conflicts in tracked files?

Essentially it would be search for those

<<<<<<<<<<<<<<<<<<<<

>>>>>>>>>>>>>>>>>>>>

character sequences...I usually do that manually :)

but surely there must be some tool that can search and report those?

Alexander Mills
  • 90,741
  • 139
  • 482
  • 817

1 Answers1

2

You can use git status that will tell you which files are in conflict state. As stated in the comments, you can use a merge tool. If you don't want to, you can still do git checkout --ours and perform a git diff to get the difference the "diff" way. The latter can be customized with git difftool (Cf. https://www.kernel.org/pub/software/scm/git/docs/git-difftool.html)

Fabien Bouleau
  • 464
  • 3
  • 11