Skip to content

Instantly share code, notes, and snippets.

@mattdkerr
Last active July 17, 2023 20:43
Show Gist options
  • Save mattdkerr/8fb3c954f465871fa5d9159d788ba4bc to your computer and use it in GitHub Desktop.
Save mattdkerr/8fb3c954f465871fa5d9159d788ba4bc to your computer and use it in GitHub Desktop.
Use BC4 in Windows, launched from WSL2
[diff]
tool = bc
[difftool "bc"]
cmd=\"/mnt/c/Program Files/Beyond Compare 4/BComp.exe\" "$(wslpath -aw $LOCAL)" "$(wslpath -aw $REMOTE)"
[mergetool "bc"]
cmd=\"/mnt/c/Program Files/Beyond Compare 4/BComp.exe\" "$(wslpath -aw $LOCAL)" "$(wslpath -aw $REMOTE)" "$(wslpath -aw $BASE)" "$(wslpath -aw $MERGED)"
[merge]
tool = bc
@mattdkerr
Copy link
Author

mattdkerr commented Jun 21, 2023

put into your WSL's gitconfig via git config --global -e

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