我在 MacBook 上使用 IntelliJ,每次打开应用程序时都会收到此消息。我已经检查了“Git 可执行文件的路径”下的“首选项”>“版本控制”>“Git”,并将此路径设置为终端中显示的“whereis git”路径。此外,在 IntelliJ 设置中测试路径会返回“Git 版本为 2.30.1”。我还能做些什么来解决这个问题?
最佳答案
就我而言,IDE 似乎只能识别 git
的路径。如 /usr/local/bin/git
,但是 git
安装在 /usr/bin/git
.所以我在他们之间做了一个软链接(soft link)。
sudo ln -s /usr/bin/git /usr/local/bin/git
关于git - IntelliJ - Git 未安装 : Cannot identify version of git executable: no response,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69295464/