Skip to content

Instantly share code, notes, and snippets.

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

Victor victor-perez

👨‍💻
coding
  • Schuberg Philis
  • Amersfoort
  • 10:33 (UTC +01:00)
View GitHub Profile
@victor-perez
victor-perez / git.bat
Last active August 1, 2024 21:06
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 %*