git not working on intellij on mac m2 pro
已回答
I'm trying to use git from intellij but it doesn't work,
when I try to update the setting by providing a working git installation in my machine (I tried and it's working) i get:
error=86, Bad CPU type in executable
here is the steps that I use to get this error :
1. get git location using : which git -> /usr/local/bin/git (I also tried /usr/local/git/bin)
2. use this path in the git config and test it
PS: when I use git from command line it works
PS: I'm using a macbook pro m2 pro.
Cordially
请先登录再写评论。
Hello
The issue is that the installed git is for the x64 architecture, and it seems you have no Rosetta emulator enabled.
To fix the issue please install an arm-compatible version of git and configure IDE to use it.
Such a version could be installed, e.g. via Homebrew.
See https://git-scm.com/download/mac
Once it is installed, please make sure that the git executable is correctly set in Preferences | Version Control | Git