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 gitOr for 64 bit architecure:
$ pacman -S mingw-w64-x86_64-gtk3
$ pacman -S gitFinally add following folders to your PATH environment variable:
C:\msys64\mingw64\binandC:\msys64\usr\binin case of 64 bit architectureC:\msys32\mingw32\binandC:\msys32\usr\binin case of 32 bit architecture