You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Joel Meador edited this page Jun 8, 2026
·
1 revision
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.