Editor: (do not forget to tick "Add to PATH" option on VS Code installation
git config --global core.editor "code --wait"
Diff:
git config --global -e
Add or replace with the following:
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
Merge:
git config --global -e
Add or replace with the following:
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
At end, should look like this:
[core]
editor = code --wait
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
Another tip: git hist https://gist.github.com/edysegura/3e7f8f5ee4f5d287cd3a5d4efd9bbb59