How to install Git Shell

前端 未结 6 1161
执念已碎
执念已碎 2020-12-23 17:17

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

6条回答
  •  感情败类
    2020-12-23 17:24

    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
    

提交回复
热议问题