androidpowershellgit-for-windows

The term 'git' is not recognized as the name of a cmdlet in android studio


When I try to use git in Android Studio terminal, I get this error:

The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

enter image description here


Solution

  • Make sure you have git installed on your pc then add git to environmental variables.

    Link: https://www.delftstack.com/howto/git/add-git-to-path-on-windows/