Why is git installed in AppData instead of <Program Files>?
I installed the GitHub Desktop application on my Windows 7 from here , and then restarted my laptop. I go to Windows cmd and type git clone https://github.com/myName/myAwesomeProject.git and I get 'git' is not recognized as an internal or external command, operable program or batch file. .
So, I figured it out on Google and found out that I needed to install PATH again. I go to C>Program Files (x86) and there is no Git folder there. I do not know why. I searched for βGitβ inside C and found it here C:\Users\nerd\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad , I copied this to my PATH, restarted the laptop and the clown is now working.
My question is: why is Git installed in this place and not in Program Files? Did I do something wrong? Will this cause problems in the future?
You really should just install standalone git; The Github git desktop must be internal to this application.
Windows git installer provides options for automatically adding executable paths to PATH.
You can get this installer here: https://git-scm.com/download/win
Git is built into the GitHub Desktop application.
It has its own shell, which will give you access to its git CLI.
It is best to add an independent git installation: uncompress PortableGit-2.5.0-64-bit.7z.exe anywhere and add it to your PATH .