How do I configure the path to the Git executable in Android Studio?
I am working in Linux.
on command prompt write "where git" it will give the path of git. copy this path and paste in the android studio. it worked for me.
For Windows, install git.exe
and give the install directory path 'C:\Users\\AppData\Local'. After installation paste 'C:\Users\\AppData\Local\Git\bin\git.exe' in Path to Git executable in the Android Studio settings.
Paste this in a terminal:
whereis git
or if you get 'command not found' you can try
where git
You get the path to your Git executable.
I have done it for Windows 7. Probably you can refer this.
Download the GitHub For Windows client and install it.
After the client successfully installed, connect it with your GitHub account. It should be easy; just follow the wizard.
Then you should add the git.exe location to your "path variable": Otherwise, if you don't want to add to environment variables.
You can open Android Studio and go to: menu Settings → Version Control → Git. In the text box next to "Path to Git Executable" you will see "git.exe". Just give it a full path like so: C:\Users...............\git.exe
To find the path of executables in Ubuntu just open the terminal and type $ which git
Mostly it will be in /usr/bin/git and now you can set this path in android studio
Click here to download git
If you use Ubuntu then write this command $ sudo apt-get install git