You require to include the following paths to
And inspect that these paths are right – you may have Git installed on a different drive, or under
Program Files (x86). Fixed the paths in case required.
PATH on Windows 10:
- In the Start Menu or taskbar search, seek for "environment variable".
- Choose "Edit the system environment variables".
- Click On the "Environment Variables" button at the bottom.
- Double-click the "Path" entry under "System variables".
- With the "New" button in the PATH editor, include
C:\Program Files\Git\bin\ and
C:\Program Files\Git\cmd\ to the end of the list.
- Close and re-open your console.
PATH on Windows 7:
Right-click "Computer" on the Desktop or Start Menu.
On the very far left, click the "Advanced system settings" link.
Click the "Environment Variables" button at the bottom.
Double-click the "Path" entry under "System variables".
At the end of "Variable value", insert a
; in case there is not meanwhile one, and then
C:\Program Files\Git\bin\;C:\Program Files\Git\cmd\. Do not put a space between
; and the entry.
Close and re-open your console.
or Follow this steps
- Go to My Computer => Local Disk(C:) => Program Files(x86) => Git => cmd
- Right Click On the git => Select Properties
- Beneath the location Copy the text eg - C:\Program Files (x86)\Git\cmd
- Come back to the Desktop
- Right-click My Computer
- Choose property
- Open Advanced
- Click Environment Variables
- In the System variables Find the Variable call Path
- Click on the variable
- Click the Edit Button
- Choose the Variable value Text Box .
- Go to the edge of the text and put semicolon(;)
- Then Right-click and press Paste
- Press Ok
In case you are employing GitHub for Windows (GitHub's old Git GUI that is no longer available for download, not the new Electron-based GitHub Desktop), you have an installation of Git under:
Extend this path, and include it to