Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to initialize Git; AggregateError(2) Error: Unable to find git Error: Unable to find git

Iam getting this in my visual studio code no matter how many time I try to reinstall it

like image 742
Pavan N Avatar asked Sep 11 '25 16:09

Pavan N


1 Answers

I had this exact problem with VSCode 1.72.2 on macOS after a holiday. It then turned out that Xcode had been updated. It required me to agree to a new license agreement before using git.

Starting Xcode, accepting the agreement and reloading VSCode solved the issue for me.


Edit: I noticed just now that this has been pointed out by @r0n9 already

like image 154
Kim Ferrari Avatar answered Sep 14 '25 07:09

Kim Ferrari