macでデフォルトで入っているgitがあるけど、最新ではない。
homebrewでインストールしたけど反映してない?とき
# なければ次を作る
touch ~/.bash_profile
touch ~/.bashrc
vim .bash_profile
# これを追記
export PATH="/usr/local/Cellar/git/2.19.1/bin:$PATH"
# iTermを再起動
git --version
参考サイト
HomebrewでGitをインストールする
https://qiita.com/micheleno13/items/133aee005ae37c28960e