gpt4 book ai didi

windows - Github Desktop 没有在 cmd [windows] 上设置 'git'

转载 作者:可可西里 更新时间:2023-11-01 09:36:25 26 4
gpt4 key购买 nike

我安装了GitHub Desktop,但是好像没有成功在命令行设置git命令。当我尝试调用 git 时,cmd 给出了错误,

'git' is not recognized as an internal or external command, operable program or batch file.

我的环境变量中添加了以下路径;有什么方法我应该编辑它以使 git 在 cmd 中工作?

C:\Users\Me\AppData\Local\GitHubDesktop\bin

最佳答案

使用 WHERE git 找到 git.exe 文件。这是应该添加到您的 PATH 环境变量中的目录。

WHERE git

我的在 C:\Program Files\Git\cmd\git.exe 中。

我已将 C:\Program Files\Git\cmd 添加到 PATH 环境变量中。

关于windows - Github Desktop 没有在 cmd [windows] 上设置 'git',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47251036/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com