Git - Bash Command line does not open after upgrading to Windows 10

I just upgraded my OS to Windows 10 and Git Bash will no longer open. I might need to uninstall and reinstall it again, but I'm just wondering if anyone else removed this problem after upgrading to Windows 10 and that fixing them was different from installing and reinstalling?

+6
source share
3 answers

There have been several instances where other users upgrading to windows 10 have experienced similar problems with Git Bash and Git in general. The problem was discovered using msysgit on GitHub. An official clarification will be published on this page very soon.

A similar problem, but not related to Git Bash, especially on the Windows 10 platform, is solved here.

If your problem is not very serious, it is recommended that you uninstall and install the appropriate version of Git Bash for Windows 10.

0
source

I have to face the same problem when updating my windows from 7 to 10. I tried reinstalling git bash, but the installation does not work for me again. This is due to a permission problem with the shell script file parser sh.exe. all you have to do is use bash as your parser script instead of sh.

You can do it as below.

Step 1:

Fix issue using shortcut

  • right-click and open the git bash properties dialog for a short fragment located on the desktop or in the Start menu (C: \ ProgramData \ Microsoft \ Windows \ Start Menu \ Programs \ Git \ Git Bash.lnk on my PC), you will see the Target submenu on the "Short cut" tab.

    "C: \ Program Files \ Git \ bin \ sh.exe" --login -i "

    just replace sh.exe with Bash.exe as shown below

    "C: \ Program Files \ Git \ bin \ bash.exe" --login -i "

Step 2:

  • Resolve issues using sh commands.

    Go to the folder with the git bash folder (C: \ Program Files \ Git \ bin on my PC)

    Take a backup: copy the sh.exe file to the old-sh.exe file and delete the sh.exe file

    open the git bash command and run the commands below.

    • cd / bin
    • ln / bin / bash.exe sh

it worked for me. I don’t know what training will be for you.

+5
source

I had problems with git bash on Windows 10. git bash did not even open in windows 10 (the window closed shortly after launch).

To solve the problem, I only had to:

  • Right click on git bash icon
  • Run as administrator.

The problem has disappeared.

0
source

All Articles