Mykita Mykita - 1 year ago 98
Git Question

How to install Git Shell for Windows?

My research led me to install GitHub Desktop (for Windows), as it seemed like Git Shell would be installed at the same time. However, I got Git Bash - not Git Shell.

I need Git Shell for an installation, but it doesn't seems obvious how to install it. Help would've been highly appreciated!

Answer Source

Simmilar qestion Check it out here --> (how to install git shell)

If you have GitHub for Windows (installed, it should come with your shortcut.

It is a shortcut to:

C:\Users\Username\AppData\Local\GitHub\GitHub.appref-ms --open-shell

More recent versions of G4W (see answer below) could have it at:

%LOCALAPPDATA%\Apps\2.0\...\...\
C:\Users\Username\AppData\Local\Apps\2.0\GitHub\GitHub.appref-ms --open-shell

If that shell complains about the absence of git, launch "G4W" itself, which will extract git. See "Where is git.exe located?".

As mentioned below, to restore the shortcut, after having run the first command, execute in the Git shell:

github --reinstall-shortcuts

UPDATE: my Shell.exe is located in here:

C:\Program Files\Git\bin\sh.exe

or depends where you installed it.

C:\Git\bin\sh.exe

Once i run it as administrator it opens and works.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download