How to configure .gitconfig to use Atom's git-difftool


#1

Could someone provide explicit instructions on how to configure .gitconfig and anything else you might have to do to use the Atom package git-difftool from inside git? I’m on a windows 10 platform

Here’s my .gitconfig file:

[user]
    email = rsx74@gmail.com
    name = Bob xyzabc
[color]
    ui = true
[web]
    browser = "chrome"

[browser "chrome"]
    path = "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"

[diff]
    tool = atom
    guitool = atom
    guitool = atom

[difftool "atom"]	
    path = C:/Users/saltydog/AppData/Local/atom
    trustExitCode = false

#2

I think you’re mistaken. According to git-difftool's documentation, it’s designed to open other programs from inside Atom. It does not enable Atom to be a difftool.


#3

Thanks. Just missed that.