Search code examples
androidgitgithubandroid-studiogithub-for-mac

Git stopped working on Android studio


I had everything set up on Android Studio but recently it stopped working. The last time I pushed onto Git was as recent as five days ago!

When I press VCS->Enable Version Control Integration: I get a dialog box on the right corner saying:

Can't start Git: /usr/local/bin/git 
Probably the path to git executable is not valid: Fix it

When I press "fix it" it takes me to preferences, I tried testing the connection but, it said no such file or directory!
So I looked at the directories and there wasn't a "git" file in the location, when I searched further I found a "git" file in "/usr/local/git"! So I changed it to that location in preferences, to which I got another dialog box saying:

Cannot run program "/usr/local/git": error=13, Permission denied

Does anyone know how to fix this?


Solution

  • Generally, /usr/local/git/ is a folder.

    In the preferences, you should put /usr/local/git/bin/git