Please ensure msysgit is installed on your local machine.
For setting up PATH, the path to git install is required which is generally "C:\Program Files (x86)\Git"
It can be slightly different depending on type of Machine (x86/x64). Check yours before continuing.
Now open Windows Environment Variables/Path Window
- Right-Click on My Computer
- Click Advanced System Settings link from the left side column
- Click Environment Variables in the bottom of the window
- Then under System Variables look for the path variable and click edit
- Add the pwd to git's bin and cmd at the end of the string like this:
;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Git\cmd
Test it out in PowerShell; type git and see if it recognizes the command.