git - 无法在 Cygwin : error while loading shared libraries 上执行 git push/pull

标签 git cygwin git-push git-pull

所以我在 Cygwin 上安装了 git,一切都很好,除了与 Remote 有关的任何事情。当我尝试推或 pull 任何东西时,出现以下错误:

/usr/libexec/git-core/git-remote-https.exe:加载共享库时出错:?:无法打开共享对象文件:没有这样的文件或目录

我还安装了 git bash,但由于该安装未与 Cygwin 连接,我不得不使用 apt-cyg 使其在 Cygwin 中运行。我可以在 git bash 或 GitHub GUI 中推/pull 没问题(它们不会冲突或任何东西),但我真的很想让 Cygwin 版本工作,因为我在那里做其他事情而且改变很烦人随时都有终端!

最佳答案

您可以使用 Cygwin 尝试相同的 Git 操作,使用 the latest git for Windows (使用它的可移植发行版 PortableGit-2.4.5.1-4th-release-candidate-64-bit.7z.exe :将它解压到任何你想要的地方)

它的 c:\path\to\PortableGit-2.4.5.1-4th-release-candidate-64-bit\git-bash.exe 调用 fairly recent bash ,并且拥有 Cygwin shell 所具有的大部分 Linux 命令,让您可以留在该 shell 中。

关于git - 无法在 Cygwin : error while loading shared libraries 上执行 git push/pull,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31458213/

相关文章:

linux - cygwin 和 cygcheck

Git 推送错误 : Repository not found

git:在工作副本之间推送的简单解决方案

xcode - git 与 xcode 快照

git - git 中的分支会创建父子关系吗?

具有 www-data 权限的 Git pull

git - 将 pushurl 添加到 git 子模块

eclipse - 如何解决 EGit 中的冲突

regex - Grep 正则表达式不适用于 Windows 上的 Cygwin

bash - 将 Cygwin/bash 结果输出到文本文件