mac homebrew error

1、Error:Failurewhileexecuting:gitconfig--local--replace-allhomebrew.analyticsmessagetrue

解决方案:在命令行执行xcode-select--install

2、Error:GitmustbeinstalledandinyourPATH!

解决方案:到homebrew安装目录(我本机目录/usr/local/homebrew)下执行gitpulloriginmaster