3

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!

Mykita
  • 437
  • 2
  • 8
  • 31

1 Answers1

1

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.

AutoTester213
  • 2,714
  • 2
  • 24
  • 48
  • Hi, thanks but I have browsed both those location and I have only: "%USERPROFILE%\AppData\Local\GitHubDesktop\GitHub Desktop.exe". It doesn't seem like the Git Shell came with my installation. Could it possibly have been erased from recent updates? – Mykita Jul 26 '17 at 14:56
  • @Mykita i just updated my answer this works for me it could be located there – AutoTester213 Jul 26 '17 at 15:05
  • 1
    C:\Git\bin\sh.exe - There it was! Thanks a bunch Wojtek! – Mykita Jul 26 '17 at 15:14
  • Confirmed. I just did a binary comparison on these files. C:\Program Files\Git\bin\bash.exe and C:\Program Files\Git\bin\sh.exe are identical. I'm guessing that this was intended to make it "easier" to find the Git shell, independent of whether it is known as "Git Shell" or "Git Bash". Unfortunately, this also causes some confusion, because they are literally different files, but also literally identical (other than their names). So "Git Shell" and "Git Bash" are both the same thing, and yet not quite. Grr. – Pseudothink Nov 23 '17 at 20:09
  • As far as I can tell, the shell is no longer included with GitHub Desktop. – posfan12 Jan 31 '20 at 05:27