Skip to content

Instantly share code, notes, and snippets.

@mattdkerr
Last active March 19, 2025 20:35
Show Gist options
  • Select an option

  • Save mattdkerr/8fb3c954f465871fa5d9159d788ba4bc to your computer and use it in GitHub Desktop.

Select an option

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

mattdkerr commented Jun 21, 2023

Copy link
Copy Markdown
Author

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

@mattdkerr

Copy link
Copy Markdown
Author

just change '4' to '5' for BC5

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