-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Building Git
We build Git for Windows using an MSys2 based Git for Windows SDK. This SDK can be installed via a net-installer
- Just install the net-installer.
-
An initial
git clone
andmake
should have already occurred when installing the net-installer. -
Open the Git for Windows SDK by double clicking either
mingw32_shell.bat
ormingw64_shell.bat
. -
cd /usr/src/git
. -
Build Git:
make
. -
Run the test suite:
make test
-
Start the MSys (
msys2_shell.bat
) shell (i.e. not the MinGW 32-bit nor the MinGW 64-bit one). -
Install the MSys2 Toolchain:
pacman -S gcc binutils make
. -
Clone the MSYS2-packages repository:
cd /usr/src && git clone https://github.com/git-for-windows/MSYS2-packages
. -
Build the package:
makepkg -s
.
(You might need to call pacman -S ca-certificates
to reinstall that package, it seems that it was not installed properly at least in one MSys2 32-bit setup.)
This wiki page has been retired. All it did was to point to Git for Windows' governance model.