Skip to content

Making a portable Git

Johannes Schindelin edited this page Jun 17, 2020 · 5 revisions

As the portable Git is made by putting together files from the Git SDK, it is advisable to update those files first. To update the packages, call pacman -Syu (caveats apply). If you want to test Git changes or make an portable Git from your own Git fork, you need to call cd /usr/src/git && make install (for documentation changes, make install-html and afterwards prefix=/mingw64 make -C contrib/subtree install-html - without the second make you get a error message about a missing git-subtree.html file).

To package the portable Git, install the SDK, run it and then issue the following commands:

cd /usr/src/build-extra
git fetch
git checkout main
./portable/release.sh <version>-test

where <version> is the Git version.

Clone this wiki locally