'git' is not recognized as an internal or external command

I created an Android Project in Android Studio, now I would like to push it to my repository.

When I enter the following command in an Android Studio terminal:

git remote add origin https://..........

The following error is returned:

git is not recognized as an internal or external command, operable program or batch file.`

How can i fix this?

+4
source share
3 answers

If "git" is not installed, you need to install git and during installation select the option "Use git from the Windows command line."

If "git" is installed, but you still get the message "git is not recognized as an internal or external command", you need to set the PATH variable to point to the git executable. To do this, follow these steps:

  • " ", ""
  • " ", " ".
  • ( "" ) " ", " ".
  • "" "", " " Click
  • "" git. "C:\Program Files (x86)\Git\bin", "" .

. git !

+4

Git, " Git Windows"?

Git : http://git-scm.com/download !

+2

Most likely, Git is not installed on your computer (or installed incorrectly). Open this link to download the installer. He must do the job for you.

There are also other ways to install Git on Windows.

+1
source

Source: https://habr.com/ru/post/1589025/


All Articles