How to set "git" to PATH for PhoneGap build in WIndows 8
cordova, git, plugins, windows
Solution
You have to add the location of git's `bin` to your PATH. On Windows, open up Start, search for "Environment Variables", click "Edit environment variables for your account", go to PATH, and append `;C:\Program Files (x86)\Git\bin` to the end of the PATH variable. You need the leading `;` to separate the various paths you have there. After this you may need to log off and log on again for the changes to take affect.
Problem
I am trying to add a plugin to my PhoneGap application using this command: ``` phonegap local plugin add https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git ``` and received this error: ``` Error: "git" command line tool is not installed: make sure it is accessible on your PATH. ``` so I downloaded this: ``` C:\Program Files (x86)\Git ``` but now I am having trouble setting it to PATH! My Environment Variables and PATH are set as: ``` ANDROID_HOME: C:\Android Development\adt-bundle-windows-x86_64-20130729\sdk ANT_HOME: C:\Program Files\ANT\apache-ant-1.9.3 JAVA_HOME: C:\Program Files\Java\jdk1.7.0_51; PATH: %JAVA_HOME%\bin;%ANT_HOME%\bin;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools ``` Can someone please help me set git to PATH so I can correctly install this plugin?