Android Studio: Can't start Git
Solution 1:
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.
Solution 2:
For the one using mac who installed Xcode7, you have to start Xcode and accept the license agreement for the android studio error to go away.
Solution 3:
Check that C:\Program Files (x86)\Git\cmd
is in you Path environment variable:
echo $env:Path
Solution 4:
I had the same problem, this is how I fixed it:
I use windows...
Go to
C:\Users\<username>\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad\bin
So in my Account I had this
C:\Users\victor\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad\bin
Make sure you find the git.exe
Then go to the VCS window(Settings --> Version Control---> Git
), and paste the PATH and append git.exe
at the end
So you shall have this
C:\Users\<username>\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad\bin\git.exe
Then click test to verify if git is working well.