So for the git merge, you can try:
DiffMerge to visually compare and merge files on Windows, OS X and Linux.
Meld, is a visual diff and merge tool.
opendiff
(part of Xcode Tools on macOS), a command line utility which launches the FileMerge application from Terminal to graphically compare files or directories, including merging.