2015-12-06 122 views
4

我想从我的github cmd使用GitHub桌面客户端执行git pull命令。GitHub git拉致命错误cygwin DLL

出于某种原因,我的git拉不再起作用,它吐出以下错误:

D:\AndroidStudioProjects\Tangle>git pull 
     1 [main] sh (6932) C:\Users\dbale\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xC77400/0xDD7400. 
This problem is probably due to using incompatible versions of the cygwin DLL. 
Search for cygwin1.dll using the Windows Start->Find/Search facility 
and delete all but the most recent version. The most recent version *should* 
reside in x:\cygwin\bin, where 'x' is the drive on which you have 
installed the cygwin distribution. Rebooting is also suggested if you 
are unable to find another cygwin DLL. 
     1 [main] sh 15144 fork: child -1 - forked process 6932 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes 
     4 [main] sh (16184) C:\Users\dbale\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xC77400/0xEE7400. 
This problem is probably due to using incompatible versions of the cygwin DLL. 
Search for cygwin1.dll using the Windows Start->Find/Search facility 
and delete all but the most recent version. The most recent version *should* 
reside in x:\cygwin\bin, where 'x' is the drive on which you have 
installed the cygwin distribution. Rebooting is also suggested if you 
are unable to find another cygwin DLL. 
1067828 [main] sh 15144 fork: child -1 - forked process 16184 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes 
     3 [main] sh (6452) C:\Users\dbale\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xC77400/0x1107400. 
This problem is probably due to using incompatible versions of the cygwin DLL. 
Search for cygwin1.dll using the Windows Start->Find/Search facility 
and delete all but the most recent version. The most recent version *should* 
reside in x:\cygwin\bin, where 'x' is the drive on which you have 
installed the cygwin distribution. Rebooting is also suggested if you 
are unable to find another cygwin DLL. 
3137324 [main] sh 15144 fork: child -1 - forked process 6452 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes 
     3 [main] sh (10188) C:\Users\dbale\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xC77400/0xED7400. 
This problem is probably due to using incompatible versions of the cygwin DLL. 
Search for cygwin1.dll using the Windows Start->Find/Search facility 
and delete all but the most recent version. The most recent version *should* 
reside in x:\cygwin\bin, where 'x' is the drive on which you have 
installed the cygwin distribution. Rebooting is also suggested if you 
are unable to find another cygwin DLL. 
7211236 [main] sh 15144 fork: child -1 - forked process 10188 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes 

我cygwin1.dll位于:C:\ cygwin64 \ BIN \

我用github经常和我以前从来没有遇到过这个问题...任何人都可以请帮我这个...

谢谢!

+0

它发生在我为Android Studio配置git时。我不知道这是不是你的情况。我从我的android sdk工具path-to-android-sdk \ tools \ bin中删除了** cygwin1.dll **。然后我重新启动我的电脑并运行GitHub独立应用程序。拉请求已成功执行。 – Luke

+0

升级后可以解决这个问题看起来像重启 - 所以这不是一个永久性的问题。请参阅:https://stackoverflow.com/a/43082278/1880657 – Mark

回答

1

我有同样的问题,这个问题是Android SDK工具。 当我卸载Android SDK工具Github桌面再次工作。

+0

不要为什么,但我只是卸载Android SDK工具,重新启动我的电脑,瞧!它的工作正常。谢了哥们。 – AmatuerDev

3

在Windows 10上有与Windows的git相同的错误堆栈,在PC上没有cygwin1.dll。解决方案是安装32位版本。 对不起,如果不回答您的问题,但这是Google在查找此错误时显示的第一个问题。所以可能对其他人有帮助,他们将会遇到与git 2.10相同的问题。

+0

这是为我工作。如果你的机器上安装了64bit git,请安装cygwin的32bit版本,否则它们将不能一起工作 –

2

它发生在您的PATH二进制文件发生冲突时。这通常是在您为Windows安装Cygwin和Git时。通用的二进制文件是使用不同版本的Cygwin构建的,并且会出现问题。

Git for Windows自带大多数 Cygwin实用程序,因此您可以卸载Cygwin。

如果您想使用Cygwin,我建议您安装纯Git二进制文件并将它们放入PATH中。

+0

删除cygwin文件夹,git-bash从错误中恢复 – signonsridhar