While trying to start a git bash window on any folder in my windows 7 machine, the git bash window closes right away.
I do this by clicking on the "Git Bash" option in the context menu.
When I try to start the Git Bash the console window starts temporarily for a few seconds and exits with a 'logout' message.
I tried to go to the Git installed location and run the "Git Bash.lnk" which exits with this message:
D:\DevProgs\Installed\Git-1.7.11\Git>"Git Bash.lnk"
Welcome to Git (version 1.7.11-preview20120710)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
AD@AYUSMAN /
$ logout
D:\DevProgs\Installed\Git-1.7.11\Git>
Is there something I am doing wrong? I had been able to use Git Bash without any issues on any folder so far.
System Info: Windows 7 64 bit professional edition. Git 1.7.11
This suddently started happening for me also. I upgraded to Git version 1.9.5 but nothing changed.
The shortcut was using the following command: "C:\Program Files (x86)\Git\bin\sh.exe" --login -i
and exiting with this bad-looking guru meditation:
PS C:\Program Files (x86)\Git\bin> .\sh.exe
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x68570000, RegionSize 0x460000, State 0x10000
C:\Program Files (x86)\Git\bin\sh.exe:
*** Couldn't reserve space for cygwin's heap, Win32 error 0
So I changed the shortcut to launch Bash instead: "C:\Program Files (x86)\Git\bin\bash.exe" --login -i
and all was fixed.
Fixed this by:
OS Version: Windows 7
GIT version: 2.15.0
Hopefully this helps!
Try git v1.8.4 for windows, it works fine to me.
It seems newer version can't use https git push.
just open git-Bash.exe as admin this worked for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With