Skip to content

Instantly share code, notes, and snippets.

View tony-sol's full-sized avatar
🫥
in a burnout recovery

Tony Soloveyv tony-sol

🫥
in a burnout recovery
View GitHub Profile
@tony-sol
tony-sol / .wsl-git.md
Created March 19, 2023 16:17 — forked from carlolars/.wsl-git.md
HOWTO: Use WSL and its Git in a mixed development environment

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 if using those files from inside WSL.

Tools

These are the tools I use:

  • git (wsl) - Command line git from within WSL.
  • Fork (windows) - Git GUI (must be used with wslgit)
  • wslgit - Makes git from WSL available for Windows applications. Important! Follow the installation instructions and do (at least) the first optional step and then the Usage in Fork instructions.