bash: git: command not found

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

$ git bash: git: command not found

解决办法

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

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

bash 复制代码
%userprofile%
相关推荐
大龄门外汉25 分钟前
CPP学习之list使用及模拟实现
windows·学习·list
明月与玄武1 小时前
Jenkins+Docker+Git实现自动化CI/CD
git·docker·jenkins·ci/cd流水线
MrLi01042 小时前
在git中同时配置gitcode和github访问权限
git·github·gitcode
越来越无动于衷2 小时前
Git 团队协作完全指南:从基础到高级应用
git
小怪兽会微笑2 小时前
如何上传github(解决git的时候输入正确的账号密码,但提示认证失败)
git·github
joe023511 小时前
电脑安装 Win10 提示无法在当前分区上安装Windows的解决办法
windows·gpt·电脑·uefi
前端 贾公子11 小时前
vue-cli 模式下安装 uni-ui
前端·javascript·windows
Elastic 中国社区官方博客13 小时前
在 Windows 上使用 Docker 运行 Elastic Open Crawler
大数据·windows·爬虫·elasticsearch·搜索引擎·docker·容器
Komorebi_999914 小时前
Git常用指令
git·web
CIAS16 小时前
clonezilla 导出自动化恢复iso
linux·windows·clonezilla