Statically compiled builds of git for 64bit Linux.
(PRs for Windows build support are welcome!)
In other words, zero dependencies on system libs. Extract somewhere, add folder to your PATH and you're good to go!
Each repository git tag in this repo corresponds to its official corresponding release version of Git.
Simply extract the latest binaries from the latest release tag:
wget -c https://github.com/darkvertex/static-git/releases/latest/download/git-binaries.linux-64bit.tar.gz -O - | tar -xz
Yes!
- Install Docker for Linux (or Docker Desktop for Windows but in Linux mode under WSL2.)
- Grab a binary of Earthly
earthly +build --GIT_VERSION=2.37.3
- Look in
./dist
for the static binaries.
Sure, you can do that, assuming your OS packages have a recent enough build and you have sudo rights and a compiler toolchain already installed.
In my case my employer was using an old CentOS install that did not have modern versions, so I made this.
This is because I am only bundling the binaries alone and nothing else.
The "templates" in question are just sample files for hooks and such.
To silence the warning, you can make an empty folder and configure it as your template dir:
mkdir $HOME/.git-template
git config --global init.templatedir $HOME/.git-template
Special thanks to https://github.com/justcompile/git-static/ for the Linux build recipe.