Skip to content

Instantly share code, notes, and snippets.

@DzeryCZ
Last active July 23, 2020 09:31
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 DzeryCZ/83af145ba0643640088ed747ab987bb4 to your computer and use it in GitHub Desktop.
Save DzeryCZ/83af145ba0643640088ed747ab987bb4 to your computer and use it in GitHub Desktop.
WSL Git under JetBrans IDEs

How to set up WSL Git under JetBrans IDEs

  1. Create file git-wsl.bat (contect can be found below)
  2. Go to JetBrains IDE (InteliJ, PyCharm, PHPStorm, ...)
  3. Go to File -> Settings -> Vesion Control -> GIT
  4. Set path to the git-wsl.bat file (created in a step above)
  5. Click Test to check the functionality
  6. Done 🎉
@echo off
setlocal enabledelayedexpansion
set command=%*
echo | bash.exe -c "git %command%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment