Last active
November 6, 2018 18:19
-
-
Save kadru/cc3adfea9ac7d430fe05ce2e8197e4ce to your computer and use it in GitHub Desktop.
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
#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