If the PATH of yours is set correctly to the point of the download of Git, then this error should not occur. You will have to add these two lines for following paths to PATH:
Once this has commenced and been completed, do check and search that these paths are correct for which you may have to install the Git into a separate drive. It can also be done under Program Files (x86) so please do rectify the paths if necessary.
To ensure the modification of the PATH on Windows 10, one must click on the Start Menu and search for "environment variable". After which selecting the "Edit the system environment variables" is crucial. After which one must click the "Environment Variables" on the base and then double tap on the PATH Entry which comes beneath the System variables.
C:\Program Files\Git\bin\ and C:\Program Files\Git\cmd\
to the end of the list by using the New button in the Path Editor. After this step, close and re-open the console.
To ensure the modification of the PATH on Windows 7, one must start by right clicking “Computer” on the Start Menu and then select “Properties”. On the extreme left, please click on the “Advanced System Settings” link given and then click on the “Environmental Variables button at the base. Under the system variables, double tap on the “Path” entry. At last, on the "Variable value", insert a ; if there is not already one, and then
C:\Program Files\Git\bin\;C:\Program Files\Git\cmd\.
Do not put a space between ; and the entry following which, please close and re-open your console.