Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Git Shell

Tags:

git

shell

windows

Windows 7 Ultimate

I used to have Git Shell installed. The icon is grey with a cat face. It was either installed by the Git or by GitHub for Windows.

Somehow I've lost it.

I've tried re-installing both Git and GitHub for Windows, but I can't get it back.

like image 608
BaltoStar Avatar asked Jul 03 '13 20:07

BaltoStar


People also ask

How do I install git bash?

How to install Git Bash. Git Bash comes included as part of the Git For Windows package. Download and install Git For Windows like other Windows applications. Once downloaded find the included .exe file and open to execute Git Bash.

How do I bring up git shell?

You can also launch the Git Shell from the Desktop GUI application by pressing the ~ key (or CTRL + ~ at any time such as when a text field has focus) or via the gear menu in the top right. Select the “Open in Git Shell” menu item.


2 Answers

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 
like image 79
VonC Avatar answered Sep 18 '22 13:09

VonC


Try running the following command:

github --reinstall-shortcuts

That repaired the Git Shell shortcut for me, and also put the proper icon back.

like image 20
Dan Avatar answered Sep 17 '22 13:09

Dan