How to setup a development environment where Git from WSL integrates with native Windows applications, using the Windows home folder as the WSL home and using Git from WSL for all tools.
Note if using Git for Windows, or any tool on the Windows side that does not use Git from WSL then there will likely be problems with file permissions inside WSL.
These are the tools I use:
- git (wsl) - Command line git from within WSL.
GitKraken (windows) - Git GUI, uses its own build-in git commands.- Fork (windows) - Git GUI, use with wslgit-fork-patch. Important! Follow the instructions here after WSL is installed!
- KDiff3 (windows) - Diff/merge GUI tool, invoked from git inside wsl.