xxxxxxxxxx
// Add the following in the .gitconfig file
[diff]
guitool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
// or use the following commands
git config --global diff.guitool vscode
git config --global difftool.vscode.cmd "code --wait --diff $LOCAL $REMOTE"