在 Windows 10 上使用 cygwin 运行 python GitPython,如何进行 git pull?

问题描述

使用此 Python 代码(使用 gitpython)(将 'sqa' 作为分支传递):

    def git_pull(self,branch_name):
        self.repo.git.checkout(branch_name)
        branch = self.repo.active_branch
        print('Current Branch: [' + branch.name + ']')
        self.repo.git.pull('origin',branch)

我收到以下错误

FatalException: Exiting... Cmd('c:\cygwin\bin\git.exe') Failed due to: exit code(1)
  cmdline: c:\cygwin\bin\git.exe pull origin sqa
  stderr: 'C:/cygwin/usr/libexec/git-core/git.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory'

这里会出现什么问题,我将如何解决

我希望它会抱怨 repo 访问,因为需要 ssh 密钥。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)