Skip to content

Instantly share code, notes, and snippets.

@kadru
Last active November 6, 2018 18:19
Show Gist options
  • Save kadru/cc3adfea9ac7d430fe05ce2e8197e4ce to your computer and use it in GitHub Desktop.
Save kadru/cc3adfea9ac7d430fe05ce2e8197e4ce to your computer and use it in GitHub Desktop.
#With the macOS El capitan
#check git version
git --version
#Backup (or remove) Apple git (Optional)
sudo mv /usr/bin/git /usr/bin/git-apple
#Install Homebrew if you didn’t have
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#Or update if you already have
brew update && brew upgrade
#Install Git with Homebrew
brew install git
#Symbolic link
brew link --force git
#Close Terminal and reopen then check version
git --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment