Skip to content

Instantly share code, notes, and snippets.

@TangChr
Last active August 6, 2018 06:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TangChr/56ed91aa26faf6fbdf30f60ab6dcc8c7 to your computer and use it in GitHub Desktop.
Save TangChr/56ed91aa26faf6fbdf30f60ab6dcc8c7 to your computer and use it in GitHub Desktop.
Adding Visual Studio Code to .gitconfig
[core]
editor = "code --wait"
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = "code --wait --diff $LOCAL $REMOTE"
[merge]
tool = vscode
[mergetool]
prompt = false
[mergetool "vscode"]
cmd = "code --wait $MERGED"
keepbackup = false
@Dalstroem
Copy link

Don't you mean .gitconfig?

@TangChr
Copy link
Author

TangChr commented Dec 29, 2016

Just discovered the mistake
@Dalstroem Of cause I meant .gitconfig 😄

Updated Gist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment