Git from homebrew

2024-09-14 git homebrew

The git command provided with Xcode seems to be old for Heroku repositories.

% git push staging develop:master
remote: !       Heroku does not support Git client version git/2.39.3 (Apple Git-146).
remote: !       Please upgrade to the latest Git version.
remote: !       For more information, please see https://help.heroku.com/GJ1XRFT5/fatal-error-pushing-to-heroku-on-macos-with-git-2-39-3-apple-git-146
fatal: unable to access 'https://git.heroku.com/horoscope-hikari-stg.git/': The requested URL returned error: 400
% git -v
git version 2.39.3 (Apple Git-146)

I have switched to use the one from Homebrew.

brew install git

Working fine!

% git -v
git version 2.46.0