'git' is not recognized as an internal or external command, operable program or batch file. (in comand prompt)

huangapple go评论55阅读模式
英文:

'git' is not recognized as an internal or external command, operable program or batch file. (in comand prompt)

问题

Windows命令提示符似乎无法识别git。即使我通过(git --version)查询版本,它也一直显示git未被识别。我不知道我的机器上是否安装了git。我还想将我的GitHub仓库克隆到我的机器上,但是在我的电脑上git无法工作。

英文:

windows command prompt can't seem to recognize git.
Even if I enquired the version via (git --version), it keeps saying git is not recognized. I don't know if my machine has git installed. I was also to clone my git hub repo to my machine, but git is not working in my computer.

答案1

得分: 1

你的机器上好像没有安装git。尝试安装它 'git' is not recognized as an internal or external command, operable program or batch file. (in comand prompt)

英文:

You don't have git installed on your machine I think.
Try installing it 'git' is not recognized as an internal or external command, operable program or batch file. (in comand prompt)

答案2

得分: 1

  • 如果Git未安装,请安装并检查。
  • 如果Git已安装,则尝试:
    • 关闭当前命令提示符,然后重新打开。
    • 重新启动计算机一次。
英文:
  • if Git is not installed, install and check.
  • if git installed, then try to
    • close the current command prompt and reopen.

    • refresh the computer once.

答案3

得分: 0

可能是git未安装。在这种情况下,您需要安装它。

尝试查找git,参见https://eu.siteground.com/kb/install-git-windows-machine/

如果找到git,请将其添加到PATH,参见https://linuxhint.com/add-git-to-path-windows/

还有可能是git安装在另一个用户中,您无法使用您的用户访问它。尝试查明是否是这种情况。

英文:

It is possible that git is not installed. In this case you will need to install it.

Try finding git, see https://eu.siteground.com/kb/install-git-windows-machine/

If you find git, then add it to PATH, see https://linuxhint.com/add-git-to-path-windows/

It is also possible that git is installed with another user and you do not have access to it with your user. Try finding out whether that's the case.

huangapple
  • 本文由 发表于 2023年6月19日 17:46:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76505442.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定