bash: git: command not found

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

$ git bash: git: command not found

解决办法

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

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

bash 复制代码
%userprofile%
相关推荐
水饺编程18 分钟前
第4章,[标签 Win32] :TextOut 测试案例2
c语言·c++·windows·visual studio
i建模18 分钟前
Omarchy挂载windows磁盘
linux·运维·windows
A懿轩A2 小时前
【Java 基础编程】Java 集合框架详解:List/Set/Map 选型 + ArrayList/HashMap 原理与使用
java·windows·list
ol木子李lo2 小时前
Linux 命令备忘录
linux·运维·服务器·windows·编辑器·ssh·bash
第七序章2 小时前
【Linux学习笔记】git三板斧
linux·运维·服务器·笔记·git·学习
三无少女指南3 小时前
开发者环境配置最佳实践:编辑器Cursor ,VS Code的上位体验实现 AI 与 WSL 联动
运维·c语言·数据库·windows·git·编辑器
水木姚姚4 小时前
string类(C++)
开发语言·c++·windows·vscode·开发工具
Rhystt4 小时前
furryCTF 题解|Web方向|保姆级详解|固若金汤、DeepSleep
git·python·安全·web安全·网络安全
love530love5 小时前
ZeroClaw Reflex UI完整搭建流程——ZeroClaw Gateway + LM Studio + Reflex 本地 AI 管理面板
人工智能·windows·gateway·lm studio·reflex·openclaw·zeroclaw
love530love13 小时前
【ComfyUI】解决 ModuleNotFoundError: No module named ‘inference_core_nodes‘ 问题
人工智能·windows·python·comfyui·inference-core