Skip to content

Instantly share code, notes, and snippets.

@ric-bianchi
Created August 4, 2020 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ric-bianchi/78dbb28837e4d1278b761a34decb49bd to your computer and use it in GitHub Desktop.
Save ric-bianchi/78dbb28837e4d1278b761a34decb49bd to your computer and use it in GitHub Desktop.
Download the latest Git and build it. Useful to install a recent Git version on Centos7. Tested.
#!/usr/bin/env bash
#
# The script downloads the latest Git version (at the time of writing),
# it builds it, and it installs the executables under `/usr/local/bin`.
#
# Aug 2020, Riccardo Maria Bianchi
#
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.28.0.tar.gz
tar -xvf git-2.28.0.tar.gz
cd cd git-2.28.0/
./configure
make -j
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment