Mixing up environments of Git and MSYS is not a good idea because they both emulate a UNIX environment, in slightly different ways (at the very least, the emulated mount points are different), so mixing them up is very likely to cause conflicts and breakages. Moreover, if the specific versions of Windows Git and MSYS2 happen to be based on different versions of cygwin1.dll
, you won’t be able to launch executables from the other ecosystem at all.
It’s better to rather run your commands in a proper MSYS2 environment: