终端输入git -version
% git -version
输出
unknown option: -version
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
查看Git版本
% git --version
git version 2.21.1 (Apple Git-122.3)
查看Git路径
% which git
/usr/bin/git
网友评论