Skip to content

Instantly share code, notes, and snippets.

@jsfaint
Created March 22, 2017 05:09
Show Gist options
  • Save jsfaint/b1c000a6d802c2d7835ac5b1852b2262 to your computer and use it in GitHub Desktop.
Save jsfaint/b1c000a6d802c2d7835ac5b1852b2262 to your computer and use it in GitHub Desktop.
Update git for CentOS, build from source
#!/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