Skip to content

Instantly share code, notes, and snippets.

@carlos-algms
Created November 22, 2017 03:51
Show Gist options
  • Save carlos-algms/57bb219ac07434a0f07ae1c28074b70e to your computer and use it in GitHub Desktop.
Save carlos-algms/57bb219ac07434a0f07ae1c28074b70e to your computer and use it in GitHub Desktop.
Wrap msys2 git to use with VScode
@echo off
setlocal
rem If you don't add path for msys2 into %PATH%, enable following line.
set PATH=c:\msys64\usr\bin;%PATH%
if "%1" equ "rev-parse" goto rev_parse
git %*
goto :eof
:rev_parse
for /f %%1 in ('git %*') do cygpath -w %%1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment