I had the same issue and resolved it by adding the /bin directory location to the PATH Environment Variable.
-
Search for the file location where Git was installed, mine is
C:\Users\(My UserName)\AppData\Local\GitHub. It may also beC:\Program Files (x86)\Git -
Once you have the location of Git you should see a
/binsub-folder. It may be in a PortableGit folder (mine is
PortableGit_015aa71ef18c047ce8509ffb2f9e4bb0e3e73f13). Copy this path. -
Go to Control Panel > System > System Protection > Advanced > Environment Variables
-
Choose PATH, click edit and paste the bin path there. If there are already any values in your PATH paste your Git path at the end separated with a semi-colon.
Now you can access Git command from CMD.