Created
March 22, 2017 05:09
-
-
Save jsfaint/b1c000a6d802c2d7835ac5b1852b2262 to your computer and use it in GitHub Desktop.
Update git for CentOS, build from source
This file contains 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
#!/bin/bash | |
[ -z $1 ] && echo "Missging git src path" && exit 1 | |
git_src=$1 | |
cd $git_src | |
make prefix=/usr | |
sudo make prefix=/usr install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment