如何解决与 git 相关的 WebStorm 错误

问题描述 投票:0回答:1

最近我从 2022 版本升级到 WebStorm 2023.2

升级后,WebStorm 中的 git 集成中断,通过集成的 Git GUI 进行的每个操作都会出现以下错误。

/bin/bash: line 1: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory not a git repository (or any of the parent directories): .git

git 命令在终端运行良好,项目

.git
也很好。虽然我一般使用 git 命令没有问题,但在解决合并冲突时我真的不想错过 GUI。

我的项目位于 Windows 10 计算机的 WSL2 Ubuntu 实例中。这在 WebStorm 升级之前是有效的。

我已经尝试联系 WebStorm 支持,但没有得到回复。

如何解决这个错误?

git ubuntu webstorm windows-subsystem-for-linux wsl-2
1个回答
0
投票

我通过更改自动检测的 git 可执行文件解决了这个问题 (

Settings > Version Control > Git
)。之前它使用 WSL2 实例的 git 可执行文件,现在 WebStorm 使用 Windows 主机的 git 可执行文件。

© www.soinside.com 2019 - 2024. All rights reserved.