Install MSYS2 using the MSYS2 installer for your system architecture.
Follow the instructions on the MSYS2 website to update your MSYS2 shell.
Install GTK3+ and git
for 32 bit architecture:
$ pacman -S mingw-w64-i686-gtk3
$ pacman -S git
Or for 64 bit architecure:
$ pacman -S mingw-w64-x86_64-gtk3
$ pacman -S git
Finally add following folders to your PATH environment variable:
C:\msys64\mingw64\bin
andC:\msys64\usr\bin
in case of 64 bit architectureC:\msys32\mingw32\bin
andC:\msys32\usr\bin
in case of 32 bit architecture