Skip to content

Instantly share code, notes, and snippets.

@apzentral
Last active November 29, 2022 09:19
Show Gist options
  • Save apzentral/57d43a803beb67c69a2b0a5d90a4abae to your computer and use it in GitHub Desktop.
Save apzentral/57d43a803beb67c69a2b0a5d90a4abae to your computer and use it in GitHub Desktop.
Git installer
#!/usr/bin/env bash
VERSION=2.37.3
curl -o git.tar.gz "https://mirrors.edge.kernel.org/pub/software/scm/git/git-$VERSION.tar.gz"
tar -zxf git.tar.gz
cd "git-$VERSION"
make prefix=/usr/local all
sudo make prefix=/usr/local install
exec bash
git --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment