1

I am able to open git bash by typing "git bash" in the windows explorer URL space on one of my other laptop.

However, I'm trying to do it on another laptop of mine and it refuses to work. A black terminal opens for a split second and then disappears.

I've reinstalled it multiple times to no avail.

Currently using v2.27 of Git on Windows 10.

Any idea how I can get this working again? It's super convenient for me.

5
  • Similar to stackoverflow.com/questions/26892725/… Commented Jun 17, 2020 at 3:32
  • @matt No, it isn't similar. They're two different issues. My bash is working. It's just that I can't open it by typing "git bash" in the windows explorer URL Commented Jun 17, 2020 at 3:38
  • Can it work by typing git-bash? git bash invokes git.exe and git-bash invokes git-bash.exe. Commented Jun 17, 2020 at 3:58
  • @ElpieKay typing git-bash opens up a new tab in my web browser with the URL "git-bash/" Commented Jun 17, 2020 at 4:48
  • For what it's worth, I can reproduce the issue on my laptop. Windows 10, git version 2.25.windows.1 - typing git-bash does nothing. Commented Jun 17, 2020 at 7:46

1 Answer 1

1

In system variables the C:\Program Files\Git\cmd is added to Path. To launch git-bash.exe (which is the program which will use git.exe internally) directly from windows explorer address field, you need to make it findable in Path.

git-bash.exe is in C:\Program Files\Git\ (notice the lack of cmd directory)

Sign up to request clarification or add additional context in comments.

1 Comment

Amazing, thanks for that suggestion. I think in my previous installation, I might have unknowingly added it to the PATH variable. Works fine now :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.