GIT - Visual Diff Tool

I am on the 13th segment of the 5 hour course currently looking at Visual Diff Tools, I have gone ahead and run the following commands in the following order in regards to setup

git config --global diff.tool vscode
git config --global difftoo.vscode.cmd “code --wait --diff $LOCAL $REMOTE”
git config --global -e
git difftool

after running the difftool I have nothing the cursor clears and nothing happens. Any suggestions as to what this could be?

Typo: you typed difftoo instead of difftool

git config --global difftoo.vscode.cmd “code --wait --diff $LOCAL $REMOTE”

git config --global difftool.vscode.cmd “code --wait --diff $LOCAL $REMOTE”

yup I just tried that and it still does’nt work, I am using Windows by the way not sure if that matters.

Try looking at the file that the commands are updating.
That is C:\users\{your-user-name}\.gitconfig
Back up .gitconfig to another file, and manually edit it.

Watch the part of the lesson where Mosh shows what is in his .gitconfig

I don’t bother configuring a diff tool.
I open VSCode directly and look at diffs.
My .gitconfig is very minimal.

Here’s my .gitconfig:
email =
name = Jerry Cxxxxx
[filter “lfs”]
smudge = git-lfs smudge – %f
process = git-lfs filter-process
required = true
clean = git-lfs clean – %f
longpaths = true
autocrlf = true

Also, I’m using GitBash for my Git command line.

1 Like

My issue is a little different.
vscode opens just fine. There is a “Splash Page” but not files are shown.
How would one use VSCode to compare two files with one is in the staging area?


My apologies. I found it. Not sure why vscode is not defaulting to my project directory… probably a $PATH issue in one of the config files. ‘$LOCAL and $REMOTE’ are listed as in the tutorial. Results are different in practice. Hmmm.

Nope. I can’t figure out how to select the Staging Area File / Index Area File. No compare is happening.