Skip to content

Instantly share code, notes, and snippets.

View victor-perez's full-sized avatar
👨‍💻
coding

Victor victor-perez

👨‍💻
coding
  • Schuberg Philis
  • Amersfoort
  • 21:06 (UTC +02:00)
View GitHub Profile
@victor-perez
victor-perez / git.bat
Last active August 4, 2021 14:16
Use WSL git inside VS Code from Windows 10 17046
@echo off
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
::this also support calls that contains a absolute windows path
::check of one of the params contain a absolute windows path
echo.%* | findstr /r /c:"[a-z]:[\\/]" > nul
if %errorlevel% == 1 (
::if not just git with the given parameters
call :git %*