1.Go to My Computer => Local Disk(C:) => Program Files(x86) => Git => cmd
2.Right Click the git => Select Properties
3.Under the location Copy the text eg - C:\Program Files (x86)\Git\cmd
4.Come back to the Desktop
5.Right-click My Computer
6.Select property
7.Open Advanced
8.Click Environment Variables
9.In the System variables Find the Variable call Path
10.Click the variable
11.Click the Edit Button
12.Select the Variable value Text Box .
13.Go to the edge of the text and put semicolon(;)
14.Then Right-click and press Paste
Press Ok
And check that these paths are correct – you may have Git installed on a different drive, or under Program Files (x86). Correct the paths if necessary.