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?

+6
source share
4 answers

Install it as an administrator by right-clicking on the Git package. Then it will be installed in C:\Program files\Git . Otherwise, by default it will be a folder with program files in the user folder.

+3
source

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

+1
source

Use the git shell that was installed next to the github app. You can change the default command line application in github application (powershell, bash, cmd, ...)

0
source

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 .

0
source

All Articles