Skip to content

Instantly share code, notes, and snippets.

@flcdrg
Last active April 26, 2023 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flcdrg/5498e03d8a7afdbfd50430608f1cfeb8 to your computer and use it in GitHub Desktop.
Save flcdrg/5498e03d8a7afdbfd50430608f1cfeb8 to your computer and use it in GitHub Desktop.
Git config (including WSL2)
git config --global core.editor "code --wait"
git config --global fetch.prune true
git config --global push.autoSetupRemote true
# Beyond Compare
git config --global diff.tool bc
git config --global difftool.bc.path /mnt/c/Program\ Files/Beyond\ Compare\ 4/BComp.exe
git config --global merge.tool bc
git config --global mergetool.bc.path /mnt/c/Program\ Files/Beyond\ Compare\ 4/BComp.exe
# Git Credential Manager
git config --global credential.helper manager
git config --global credential.https://dev.azure.com.usehttppath true
# For WSL to use host
git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment