Skip to content

Commit

Permalink
Use vscode as diff/merge tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
marciotoshio committed Mar 19, 2023
1 parent 1ab8c51 commit aa4caca
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
[core]
editor = code --wait
# Use custom `.gitignore` and `.gitattributes`
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
Expand Down Expand Up @@ -137,6 +139,11 @@
# Detect copies as well as renames
renames = copies
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[diff "bin"]
# Use `hexdump` to diff binary files
Expand All @@ -151,10 +158,10 @@
# Include summaries of merged commits in newly created merge commit messages
log = true
tool = kdiff3
tool = vscode
[mergetool "kdiff3"]
path = /Applications/kdiff3.app/Contents/MacOS/kdiff3
[mergetool "vscode"]
cmd = code --wait $MERGED
[push]
Expand Down Expand Up @@ -188,5 +195,7 @@
insteadOf = "gist:"
[user]
email = [email protected]
email = [email protected]
name = Marcio Toshio
[pager]
branch = false

0 comments on commit aa4caca

Please sign in to comment.