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?
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.
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.
I found the simple solution here.
Go to File--> Settings-->Terminal-->Shell Path --> Browse--> path of git bash.exe-->Apply-->OK
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..
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.
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