Git CLI problem in Ionic

Asked

Viewed 74 times

-1

I’m trying to realize the tutorial application available on the Ionic website https://ionicframework.com/docs//intro/installation/ but I always find problems when it comes to choosing Git, I arrived to install Git in the indicated link but nothing was solved. inserir a descrição da imagem aqui

  • Did you install git?! After installed, did you try to close the CMD and open again? Checked to see if git is in the environment variables?

1 answer

0


The message says that GIT CLI is not in your PATH. Because then, you need to add Git to PATH. See below how to do this:

  1. Right click on "My Computer" and press "Properties"
  2. Click "Advanced System Settings"
  3. Click on "Environment Variables"

Right after, edit the variable PATH adding the path of GIT, both the .exe, as to the CMD. See below for the default path you should add:

;C:\Program Files\Git\bin\git.exe;C:\Program Files\Git\cmd 

It is also possible to do this via the command line. See here for this question about How to change PATH in Windows.

It’s important to check whether the Git version is 32-bit or 64-bit, because depending on the version, it changes the path on the operating system, which should also be checked.

  • I was able to fix this problem as it always does here: git config --global user.email "[email protected]" git config --global user.name "Your Name"

  • @Carolina__ if that answer solved your problem, you’d better validate it. That’s another problem. This error is because you need to set up an authentication for your GIT by entering your name and email. Just follow these instructions.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.