您现在必须在终端中此命令
sudo xcode-select --switch /Applications/Xcode.app
Check git version by executing in terminal:
git --version
You can update/install git from here: https://git-scm.com/download/mac
You have to download git version from here and Install it
It seems that you are facing this problem because your git version is older.
If you have installed Xcode (Xcode has the latest git built-in ), so you only need the terminal type:
sudo Xcode - select - switch/Applications /[your Xcode application name.app]
so that you can use the Xcode built-in git
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.