【问题标题】:How to tell if I have git on my Windows machine [duplicate]如何判断我的 Windows 机器上是否有 git [重复]
【发布时间】:2021-08-15 00:16:26
【问题描述】:

我在我的 Windows 7 机器上运行 GitHub Desktop for Windows (Version 2.8.2 x64)

如何判断我的 Windows 机器上是否安装了 git(即管理 git 存储库的 the command line tool)?如果是这样,我怎么知道我有哪个版本的git

【问题讨论】:

    标签: windows git github


    【解决方案1】:

    打开命令提示符并运行

    git --version
    

    如果 git 仍然显示为未知命令,请尝试将其添加到 PATH variable

    【讨论】:

    • 如果git.exe已安装但未添加到%PATH%怎么办?
    猜你喜欢
    • 2012-08-06
    • 1970-01-01
    • 2018-09-21
    • 1970-01-01
    • 2016-10-07
    • 2018-11-26
    • 1970-01-01
    • 1970-01-01
    • 2012-04-07
    相关资源
    最近更新 更多