Android Studio: Can’t start Git

androidandroid-studiogit

When I start Android Studio there's a message

Can't start Git: C:\Program Files (x86)\Git\cmd\git.cmd Probably the
path to Git executable is not valid. Fix it.

But I can see that the git.cmd IS there. How do I fix the issue then?

Best Answer

For some reason this morning, I had to agree to the terms and conditions by running git as administrator in the command line.

On the mac

sudo /usr/bin/git

On the pc

c:\path\to\git.exe

Accept the EULA.

After I did that, I was able to use git in my IDE.