Created
November 22, 2017 03:51
-
-
Save carlos-algms/57bb219ac07434a0f07ae1c28074b70e to your computer and use it in GitHub Desktop.
Wrap msys2 git to use with VScode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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