Home > Net >  Git version in the terminal is not the same as in Visual Studio Code
Git version in the terminal is not the same as in Visual Studio Code

Time:11-21

I tried to update Git on Mac terminal by using VSCode settings

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.

  • Related