Compare three files line by line. More information: https://www.gnu.org/software/diffutils/manual/html_node/Invoking-diff3.html.
diff3 path/to/file1 path/to/file2 path/to/file3
diff3 --show-all path/to/file1 path/to/file2 path/to/file3