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.
source share