Install Git
https://softwarerecs.stackexchange.com/questions/11938/where-can-i-find
You can use MinGit [1]. I use the "busybox" version as its smaller (19 MB), and
if you want, you can actually extract just these files:
mingw64\bin\git-remote-https.exe
mingw64\bin\git.exe
mingw64\bin\libbrotlicommon.dll
mingw64\bin\libbrotlidec.dll
mingw64\bin\libcrypto-1_1-x64.dll
mingw64\bin\libcurl-4.dll
mingw64\bin\libiconv-2.dll
mingw64\bin\libidn2-0.dll
mingw64\bin\libintl-8.dll
mingw64\bin\libnghttp2-14.dll
mingw64\bin\libpcre2-8-0.dll
mingw64\bin\libssh2-1.dll
mingw64\bin\libssl-1_1-x64.dll
mingw64\bin\libssp-0.dll
mingw64\bin\libunistring-2.dll
mingw64\bin\libwinpthread-1.dll
mingw64\bin\libzstd.dll
mingw64\bin\zlib1.dll
mingw64\ssl\certs\ca-bundle.crt
and it gets down to 7 MB. It seems this has been available since at least 2016
but I only just found it. It seems they dont really advertise it, as I saw one
developer say that MinGit is "intended for applications, not for interactive
use". However I tested all these commands:
git add
git branch
git checkout
git clean
git clone
git commit
git config
git diff
git log
git push
git reset
git status
git tag
and it seems to work fine for me.
- https://github.com/git-for-windows/git/releases
- https://github.com/git-for-windows/git/releases/tag/v2.9.0.windows.1