Phonegap adding plugin using command line tool

cordova, git, node.js, phonegap-plugins

Solution

You could install git command line for Mac OS X in here, and then try run that again. For Windows, download Git on code.google.com/p/msysgit. Then: git clone git://project.url.here

Problem

I am new in phonegap, i go through steps define in phonegap official site for creating project using command line tool(nodejs). i success to create project and adding platform but, following error occur when i am trying to add plugin. Command : ``` cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git ``` error : ``` [Error: Error fetching plugin: Error: git command line is not installed] ``` how can i resolve this error and how can i install git command line? Thanks in advance.

Original source