-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 MinGW shell by double clicking either the Shortcut on the desktop
Git SDK 32-bit.lnk
or by double clickingmingw32_shell.bat
in the install folder. That isGit SDK 64-bit.lnk
andmingw64_shell.bat
for the64bit
net-installer. -
Change directory to the initial clone:
cd /usr/src/git
. -
(Optional) build Git:
make
. -
Run the test suite:
make test
. If you are a fan of statistics, you can use the followingprove
invocation to run the testsuite. But first we have to change to the test directory with the commandcd t
. After that you can issue/usr/bin/time prove -j 15 --state=failed,save ./t[0-9]*.sh
. If 15 threads are too many for your system, you can provide the number of threads via the-j <num>
(j for jobs) parameter. -
Command Lines for building git and git documents
cd /usr/src
git clone https://github.com/git-for-windows/git.git
cd git
# verify that the test suite passes
make -j5 all
cd t
/usr/bin/time prove -j 5 --state=failed,save ./t[0-9]*.sh
# install the git binaries
make install
# make & install the html documentation
cd /usr/src/git/Documentation
make html
DIFF='diff' HOME='/mingw64' make install-html #/mingw32 if for 32bit arch
This is the Git for Windows wiki. See how-to-participate.