Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git command not recognisable in android studio terminal

I have just downloaded android studio as well as git.exe also. I have updated path in version control-->>git also with appropriate git.exe path and tested and it is successful. Now from terminal when I type git clone http://my projectlink, it says "'git' is not recognized as an internal or external command, operable program or batch file."

Am I missing anything else?

like image 697
Aalap Patel Avatar asked Jun 19 '16 15:06

Aalap Patel


People also ask

Does Git work with Android Studio?

First, launch Android Studio, then select the “File” menu and click the “Settings” menu item. In the settings screen, expand the “Version Control” option and click on “Git”. In the “Path to the Git executable” field enter the path to Git executable on your local machine.

What is Git is not recognized as an internal or external command operable program or batch file?

git is not recognized as an internal or external command, operable program or batch file is an external command error. It occurs while a user tries to run a 'git' command in CMD (Command Prompt). It appears because the user has not installed Git.


2 Answers

I found the simple solution here.

Go to File--> Settings-->Terminal-->Shell Path --> Browse--> path of git bash.exe-->Apply-->OK

enter image description here

Now Restart the Android studio to effect changes.

OR

You could also just start a new session

That's it. Now you can use terminal as git bash..

like image 103
Shailendra Madda Avatar answered Sep 28 '22 22:09

Shailendra Madda


You need to set Environment Variable path for your git.exe.

Right-Click on My Computer Click Advanced System Settings Click Environment Variables

Then under System Variables look for the path variable and click edit Add the path of git’s bin to the end of the string.

like image 39
Karan Kalsi Avatar answered Sep 28 '22 22:09

Karan Kalsi