https://github.com/git-for-windows/git/wiki/Install-inside-MSYS2-proper
- Open a PowerShell as administrator, and enter the following command:
New-Item -ItemType SymbolicLink -Path 'C:\msys64\opt\git-for-windows-mingw64-bin' -Target 'C:\Program Files\Git\mingw64\bin'
This asumes that both paths exist and you have both Git for Windows and MSYS2 installed on those default locations, change them according to your needs.
- Next, add the following 2 lines to your .gitconfig file in you MSYS2 homefolder:
[credential]