错误:无法在 Windows cmd 上的 PATH 中找到 git

ail*_*ily 2 windows git flutter

我已按照所有步骤操作并添加到我的路径中,但在尝试运行后C:\flutter\bin;C:\Program Files\Git\git-cmd.exe;C:\Windows\System32仍然收到错误。unable to find git in your PATHflutter doctor

我还重新安装了 Git 并调整了我的 PATH 环境以在命令提示符下使用 Use Git 和可选的 Unix 工具,但在尝试运行时仍然遇到相同的错误flutter doctor

Zai*_*oho 12

flutter doctor在vs code cmd 上运行时我也遇到了这个问题,如果你认为你已经添加了正确的 PATH( How to Solution "Unable to find git in your PATH" on Flutter?)并且仍然收到错误,请尝试运行git config --global --add safe.directory C:/flutterC:/flutter应该是你使用的flutter目录