bash: git: command not found

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

$ git bash: git: command not found

解决办法

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

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

bash 复制代码
%userprofile%
相关推荐
victory04311 小时前
git clone只克隆小文件 无法克隆大文件解决办法
git
JH30732 小时前
git和svn一些使用上的区别
git·svn
万粉变现经纪人2 小时前
如何解决 pip install 代理报错 407 Proxy Authentication Required 问题
windows·python·pycharm·beautifulsoup·bug·pandas·pip
m***11902 小时前
Windows版Redis本地后台启动
数据库·windows·redis
小喻yushi2 小时前
Git入门
git
大柏怎么被偷了3 小时前
【Git】基本操作
linux·运维·git
晨同学03273 小时前
【亲测可行】windows安装visual studio & opencv4.10.0
ide·windows·visual studio
水饺编程4 小时前
第3章,[标签 Win32] :WM_CREATE 消息的产生
c语言·c++·windows·visual studio
路由侠内网穿透.4 小时前
本地部署问答社区 Apache Anwser 并实现外部访问
服务器·windows·网络协议·apache·远程工作
摇滚侠5 小时前
零基础小白自学 Git_Github 教程,Git 命令行操作2,笔记19
笔记·git·github