Skip to content

Instantly share code, notes, and snippets.

@rbukovansky
Last active August 9, 2023 14:08
Show Gist options
  • Save rbukovansky/394264565ccd232ce06fc77ed71ea02c to your computer and use it in GitHub Desktop.
Save rbukovansky/394264565ccd232ce06fc77ed71ea02c to your computer and use it in GitHub Desktop.
Visual Studio Code as diff and merge tool for Git
[diff]
tool = vscode
guitool = vscode
[difftool "vscode"]
name = "VS Code"
trustExitCode = true
cmd = <path_to_vscode>/code.exe -n -wait -d $LOCAL $REMOTE
[merge]
tool = vscode
guitool = vscode
[mergetool]
prompt = false
keepBackup = false
keepTemporaries = false
[mergetool "vscode"]
name = "VS Code"
trustExitCode = true
cmd = <path_to_vscode>/code.exe -n -wait -m $LOCAL $REMOTE $BASE $MERGED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment