Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git not found. Install it or configure it using the 'git.path' setting

Facing error as "Git not found" in VS Code in Mac OS Ventura.

How to resolve this error in VS Code on mac? Any Help is appreciated :)

NOTE: My GIT is working fine in Terminal but only isn’t recognized in VS Code Source Control (3rd Icon in the left bar)

like image 288
Sudir Krishnaa RS Avatar asked Sep 05 '25 03:09

Sudir Krishnaa RS


2 Answers

Just found this solution and this works :

I have also attached the solution screen recording : https://youtu.be/vFJCrzlPOow

GIT NOT FOUND ERROR IN VS CODE (Mac OS Ventura)

Step 1: Check if git is installed in your system by running the below command

git --version

Step 2: Find the path where GIT is installed by running the below command

which git

Step 3: Open Visual Studio Code, navigate VS code -> Preferences -> Settings -> Search "git path" in the settings search box -> "Edit in settings.json" (in the first option)

"git.path", "paste_your_git_path_here"

(Hint: Follow Step 2 to find the path)

This helped solve the VS Code Git not found error!!

Thank You :)

like image 91
Sudir Krishnaa RS Avatar answered Sep 07 '25 20:09

Sudir Krishnaa RS


It is because you need to accept the Xcode license again after installing the update. Resolve this by running:

sudo xcodebuild -license accept

vscode will get back normal after you accept the license.

like image 33
Lewis Avatar answered Sep 07 '25 20:09

Lewis