If you are using Visual Studio Code Insiders (for early adopters) you may need to have a vscode instance/window already running before running your difftool
, otherwise it may crash once you finish reviewing the first file (when you have more than one file to check diffs)
git config --global diff.tool vscode
git config --global difftool.vscode.cmd 'code --wait --diff $LOCAL $REMOTE'
to undo the changes, either run:
or run
git config --global -e
and delete the respective lines