尝试在我的Windows 7计算机上的任何文件夹上启动git bash窗口时,git bash窗口立即关闭。
我是通过点击上下文菜单中的“Git Bash”选项来完成的。
当我尝试启动Git Bash时,控制台窗口暂时启动几秒钟并退出 '退出'消息。
我试图转到Git安装位置并运行“Git Bash.lnk”并退出此消息:
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>
我做错了吗?到目前为止,我已经能够在任何文件夹上使用Git Bash而没有任何问题。
系统信息: Windows 7 64位专业版。 Git 1.7.11
答案 0 :(得分:3)
这突然开始发生在我身上。我升级到Git版本1.9.5,但没有任何改变。
快捷方式是使用以下命令:"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
并退出这个看起来很糟糕的大师冥想:
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
所以我更改了快捷方式以启动Bash:"C:\Program Files (x86)\Git\bin\bash.exe" --login -i
并且所有内容都已修复。
答案 1 :(得分:0)
试试windows的git v1.8.4,它对我来说很好用 似乎较新的版本无法使用https git push。
答案 2 :(得分:0)
通过以下方式解决了这个问题:
操作系统版本:Windows 7
GIT版本:2.15.0
希望这有帮助!
答案 3 :(得分:0)
只需以管理员身份打开git-Bash.exe,这对我有用