bash: git: command not found

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

$ git bash: git: command not found

解决办法

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

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

bash 复制代码
%userprofile%
相关推荐
Eloudy9 小时前
git format-patch 、git diff 与 git apply
git·构建
技术小结-李爽10 小时前
【工具】git安装及配置
git
曹牧16 小时前
C#:`JsonConvert.DeserializeObject`
windows·c#
技术小结-李爽16 小时前
【工具】git与gitee和gitlab和github等等有什么区别?
git·gitee·gitlab
Haku Coder17 小时前
0基础学习Git——基础篇
git·学习
JckOLF04Z17 小时前
软件项目“免坑”指南
windows
imperialeast19 小时前
WinAXP音乐播放器8月4日更新
windows·算法·ui
aGdF8E3gQ19 小时前
16. LangChain ChatPromptTemplate多模态应用实战
windows·langchain
IT小盘20 小时前
17-构建Prompt测试集-提示词优化不再凭感觉
服务器·windows·prompt
为伴只为你21 小时前
将已有git工程转为使用LFS
git