msysgit / git

msysGit-based Git for Windows 1.x is now superseded by Git for Windows 2.x
http://github.com/git-for-windows/git
Other
1.01k stars 316 forks source link

Git Bash Instantly closes on startup. #310

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hello! Whenever I try and right click in a folder and click run git bash here it opens for a split second and closes. I think this may be because I am running windows 10 technical preview. I have tried running it in compatibility mode & admin mode and to no success. Would be great for this to be fixed.

dscho commented 9 years ago

Unfortunately, this is not a good bug report.

However, you can probably find out more detailed information what is going wrong (and consequently, you will have a better chance to fix the issue yourself) by ensuring that Git Bash from the Start Menu works, and then work up your way to the root cause by inserting logging statements as described here.

ghost commented 9 years ago

Actually it is a real issue because I CANNOT RUN GIT. I have looked up this issue everywhere I have tried several things to fix this. NOTHING WORKS! Oh but wait. When I rolled back to windows 7. Works fine. I wonder why?

sschuberth commented 9 years ago

Maybe because you are running Windows 10 technical preview? ;-) More seriously, please don't expect us to fix potential issue that a single user as only in conjunction with software of preview quality. I'm not precluding there's an issue in Git. I'm just saying that for me it makes little sense to look into this just now when Windows 10 is not even released.

CalMlynarczyk commented 9 years ago

Try calling Git from another shell (ex. CMD, PowerShell). If it errors out due to some sort of memory allocation issue like the one reported in #307, then you will have to run one of the fixes provided for that issue.

I run into the same problem almost daily on my Windows machine. You can either restart your system and try again, or you can use the rebase command against sh.exe as an admin to some random memory address to temporarily fix the problem.

suburbanworrier commented 9 years ago

I had this on a Windows 8.1 machine. Git Bash would start and almost instantly close when called from the context menu. I uninstalled and reinstalled with the simple (non cheetah) context menu option and all is now well. HTH

dscho commented 9 years ago

This issue unfortunately lacks enough information to do anything about it. It might be the famous DLL address problem (which would be addressed by Git for Windows 2.x anyway, which is intended to supersede msysgit-based Git for Windows 1.x).

So I am closing this issue, asking everybody who experiences this issue to try Git for Windows 2.x instead.