I tried to update Git on Mac terminal by using
If so, you can delete that setting: VSCode will pick up git
from the $PATH
.
As long as which git displays /opt/homebrew/bin/git
before /usr/bin/git
, you will be OK.
The OP MadCodex adds in the comments:
I just deleted the brew git and everything come to normal again
I would not recommend that "solution", as the brew git is the one which is supposed to be here.
From the discussion, adding export PATH="/opt/homebrew/bin:$PATH"
in ~/.zshr
and relaunching VSCode was enough.