• Any git in a storm?

    If your instance of PHP Storm is saying it can’t find git.exe then there’s an easy way to fix it. Assuming you do have git installed!

    Background

    • I’ve just upgraded to PHPStorm 8.
    • I opened up my GitHub clone of the shortcake plugin.
    • PHP Storm detected that it was a Git repo so checked for git.exe
    • Which it couldn’t find.
    • I had no idea either… I use GitHub
    • But found the answer soon enough.

    My solution

    • Start Git Shell
    • Execute where git.exe
    • Take your pick from the two listed
      C:\GitHub>where git.exe
      C:\Users\Herb\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad\cmd\git.exe
      C:\Users\Herb\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad\bin\git.exe
      
    • Paste the file name into PHPStorm and Test
    • Alternatively just type PATH
      C:\GitHub>path
      PATH=C:\Users\Herb\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a
      147ff37326ad\cmd;C:\Users\Herb\AppData\Local\GitHub\PortableGit_c2ba306e536fdf87
      8271f7fe636a147ff37326ad\bin;C:\Users\Herb\AppData\Local\Apps\2.0\GPPN55Z3.BLR\M
      H0028JJ.XXV\gith..tion_317444273a93ac29_0002.0007_cc7bcd60c65d01d4;C:\Users\Herb
      \AppData\Local\GitHub\git-media-amd64_0.2.2;C:\WINDOWS\Microsoft.NET\Framework\v
      4.0.30319;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\Sys
      tem32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Co
      re-Static;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files\
      TortoiseSVN\bin;C:\ProgramData\ComposerSetup\bin;c:\php;c:\mysql\bin;c:\cygwin\b
      in;c:\d_drive\dos;c:\php;c:\vslick\win
      
    • Choose the first one, copy and paste, then append \git.exe

    Update July 2015

    What worked in January no longer works today.

    When I started Git Shell from the desktop I got taken to the Windows Power Shell where the PATH is not defined to run cygwin, so which git.exe didn’t work. Furthermore path didn’t appear to work either.

    I realised that I needed to start the Git Shell from GitHub for Windows because this is where my default shell is set to Cmd

    • Start GitHub for Windows
    • Choose Settings > Open in Git Shell

    But before I realised this I did manage somehow to discover the path after which I created a git.bat file to invoke git.exe.

    So now I can use the git command in my normal command prompt, except git commit didn’t work because it couldn’t find gitpad. I fixed this using

    git config --global core.editor vs
    

    where vs is the Visual Slick Editor.

    See also


    ,

    Published:

    Last updated:

    July 27, 2015

Categories

Tide times from tidetimes.co.uk

Tide Times & Heights for Langstone Harbour on
Tuesday, 07 December 2021
High Tide:01:09 ( 4.90m )
Low Tide:06:14 ( 0.90m )
High Tide:13:24 ( 4.80m )
Low Tide:18:38 ( 0.80m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
7th December 2021
01:22 High Tide ( 4.85m )
06:22 Low Tide ( 0.69m )
13:33 High Tide ( 4.83m )
18:48 Low Tide ( 0.57m )