我已经安装了Git for Windows,但是当我尝试在命令提示符中使用Git命令时,我得到以下错误:
'git' is not recognized as an internal or external command,
operable program or batch file.
我如何解决这个问题?
我已经安装了Git for Windows,但是当我尝试在命令提示符中使用Git命令时,我得到以下错误:
'git' is not recognized as an internal or external command,
operable program or batch file.
我如何解决这个问题?
当前回答
我遇到过这个问题,在安装Git后解决了 Downloadlink: https://git-scm.com/downloads
其他回答
开始->所有程序->Git->Git Bash
带你直接到Git Shell。
避免搅乱PATH变量的简单方法:重新安装git并选择“从Windows命令提示符使用git”。如前所述,它将为您使用PATH变量。看到截图
我遇到了这个问题,当你安装git时,你必须选择正确的路径,我的意思是,它应该是你在git Bash中写git(代码)的相同路径…例如,如果您的路径是c:\Users\username,则必须将git安装在相同的路径(c:\Users\username)。这两条路径不应该不同
我遇到过这个问题,在安装Git后解决了 Downloadlink: https://git-scm.com/downloads
我通过将Target框架更改为. net 6.0来解决这个问题。
要做到这一点,请遵循这条路径。
解决方案资源管理器->右键单击项目->属性
然后尝试改变框架。