How to set git enviroment variable

You need to add the directory you installed git to to your PATH environment variable.

  1. Right click on Computer.
  2. Click Advanced System Settings
  3. Click Environment Variables inside the Advanced Menu
  4. Under System Variables, scroll to PATH
  5. Add ;”C:\path\to\git\bin”;”C:\path\to\git\cmd”

Test the git command in the command prompt to see if it worked. Git is usually located in Program Files or Program Files(x86)

Comments are closed.