bash: git: command not found

在windows上重新安装Git之后,遇到cmd可以使用git命令,但是git bash中使用的git命令的时候,会提示:
$ git bash: git: command not found

在这里插入图片描述

解决办法

找到用户目录下的.bash_profile和.bashrc文件,编辑打开,找到里面不正确的文件路径,将其删除就好了。

如何找到快速进入到用户目录下:打开cmd允许对话框,输入以下命令。

%userprofile%

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_19309473/article/details/143467660