-
Notifications
You must be signed in to change notification settings - Fork 2
How do I update git?
How do I update git on macOS?
If it's already installed via homebrew, to update, run:
brew update && brew upgrade git
If you're not sure whether it's installed with Homebrew or xCode, you can check by running:
brew info git
If you see Not installed in the response (buried among other info), you either don't have git installed, or you're using the bundled version that comes with xCode.
If you got that not installed message, you can safely install the Homebrew version with:
brew install git
It won't break anything, even if you have git also installed via xCode. Then check to make sure you're using the Homebrew version with:
which git
You're looking for it to return
/usr/local/bin/git
If it doesn't, you may need to modify your $PATH to use the brew directories.
🏳️🌈🦄 Sharing is caring. 🦄🏳️🌈
TODO: can we recreate the tag system here roughly with sections about certain subjects?