Created
August 4, 2020 14:10
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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