美文网首页
Mac flutter环境搭建(一) mac查看是否安装git

Mac flutter环境搭建(一) mac查看是否安装git

作者: 冰点雨 | 来源:发表于2020-03-01 14:04 被阅读0次

    终端输入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
    

    相关文章

      网友评论

          本文标题:Mac flutter环境搭建(一) mac查看是否安装git

          本文链接:https://www.haomeiwen.com/subject/pheqkhtx.html