问题
I am running Git v2.15.1.2 on a 64-bit machine. Whenever I try executing $ git pull -r
to pull the latest update of my GitHub repo, this will happen:
1) The pull is successful, but it never returns to the line where I can type.
2) No matter how long I wait, it just bails out into a sh.exe.stackdump
file.
I tried reinstalling numerous times Git without any difference, and it works perfectly fine on my other computers. Do you guys know any way to fix this?
回答1:
This was seen in git-for-windows/git issue 1630 for Git for Windows 2.13 to 2.17.
We are constantly haunted by anti-malware triggering by mistake on our fork of the Cygwin runtime, which is needed to execute Unix shell scripts (and git stash is implemented as such).
Git 2.19.0-rc0 is supposed to be more robust against that type of error.
Since this was for git stash
, check if your local config has a pull.rebase=true
and rebase.autostash=true
.
来源:https://stackoverflow.com/questions/48335508/git-cli-not-terminating-on-pull-rebase