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?
With Android Studio, you don't need to use the terminal to contribute to an Android project on GitHub. It has native integration with git and GitHub to allow most actions via the Android Studio UI.
So, to do this we are going to click on “File” and then on “Settings”. Now, in Settings, we are going to click on “Version Control” and then “Git”, and in the top portion, it is said that “Auto Detected” is the path where the Git executable file is, and on clicking on “Test” the Git Version which is installed is shown.
go to the terminal and type git --exec-path to get your git path. then go to IntelliJ and configure it, Click browse and select your git path. select git and hit test.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With