使用git version查询安装的Git版本信息:
$ git version git version 2.24.2 (Apple Git-127)
或使用 git --version:
$ git --version git version 2.24.2 (Apple Git-127)