bash: git: command not found

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

$ git bash: git: command not found

解决办法

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

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

bash 复制代码
%userprofile%
相关推荐
Qiuner8 小时前
Pico 重塑Agent时代人与数据交互方式
windows·docker·ai·架构
周小码8 小时前
10分钟搭建私有Git服务器:Soft Serve实战
运维·服务器·git
FL16238631299 小时前
Windows x64 系统安装 ChromeDriver
windows
百事牛科技10 小时前
两种方法锁定 PDF,拒绝内容被随意篡改
windows·pdf
云樱梦海14 小时前
OpenClaw官方:OpenClaw Windows Node 实战(1.5K ★ 开源推荐)
windows·开源·github·openclaw
深度学习040715 小时前
SVN 独立服务端部署与客户端使用指南(CentOS/Rocky 9.5 + Windows)
windows·svn
爱分享软件的学长16 小时前
Tiled Map Editor 1.12.1 官方版下载(夸克网盘+百度网盘,SHA256校验)
windows·开源软件·软件下载
Dream-Y.ocean16 小时前
鸿蒙PC平台 Carnac 按键显示适配实战:从 Windows 到 HarmonyOS 的 Electron 迁移指南
windows·electron·harmonyos
拾贰_C16 小时前
【mysql | windows | installation】 MySQL5.安装
数据库·windows·mysql
梅塔文·欧帕西安卡琼17 小时前
git的底层原理详解
git