sh.exe.stackdump when use git stash

匿名 (未验证) 提交于 2019-12-03 01:54:01

问题:

I'm new with Git and have a problem with "stash" commands.

When i write commands like "git stash", "git stash list", "git stash apply", "git drop", ... , i always get a file named "sh.exe.stackdump" with this:

Exception: STATUS_STACK_OVERFLOW at rip=7FFFE2A29F97 rax=0000000000001250 rbx=00000000FFFFADF0 rcx=0000000000000000 rdx=0000000180010018 rsi=0000000180271780 rdi=000000018021C490 r8 =00000000000C2790 r9 =0000000180271780 r10=00000000FFFF9000 r11=00000000FFE03190 r12=00000000FFFFACD0 r13=000000018021C490 r14=00000000FFFFAC70 r15=00000000FFFFADF8 rbp=0000000000000420 rsp=00000000FFFFAAD8 program=C:\Program Files\Git\usr\bin\sh.exe, pid 7748, thread unknown (0x3144) cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B 

or

Exception: STATUS_STACK_OVERFLOW at rip=7FFFE2A29F97 rax=0000000000001250 rbx=00000000FFFFACD0 rcx=0000000000000000 rdx=0000000180010018 rsi=0000000180271780 rdi=000000018021C490 r8 =00000000006A2790 r9 =0000000180271780 r10=00000000FFFF9000 r11=00000000FFE03490 r12=00000000FFFFABB0 r13=000000018021C490 r14=00000000FFFFAB50 r15=00000000FFFFACD8 rbp=0000000000000420 rsp=00000000FFFFA9B8 program=C:\Program Files\Git\usr\bin\sh.exe, pid 11624, thread unknown (0x13B8) cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B 

Commands works fine, but it's annoying to delete it everytime i use "stash".

And when i try to name a stash, i get this error:

Cannot save the current index state 

What should i do? I'm using Windows 10, git version 2.15.0.windows.1, and the windows command prompt

回答1:

Try the same stash command after setting a simplified PATH:

set G=c:\path\to\latest\git set PATH=%G%\bin;%G%\usr\bin;%G%\mingw64\bin set PATH=%PATH%;C:\windows\system32;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\ 

If G (the Git installation folder) is set before Windows\System32, the find from Git will be chosen over the default Windows one.

Then go to your repo, and try again.
But make sure to use git version 2.15.1.windows.2



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!