【问题标题】:SourceTree: Error when opening repository (OSX)SourceTree:打开存储库时出错(OSX)
【发布时间】:2015-01-05 14:32:49
【问题描述】:

当我打开 SourceTree 并尝试打开我的存储库(或克隆然后打开)时,我收到此错误:

'git log' failed with code 5:'

dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib

'

我已安装命令行工具 (the answer here suggests its needed)。我该如何解决这个问题?

【问题讨论】:

    标签: macos git symbols atlassian-sourcetree


    【解决方案1】:

    问题源于 SourceTree 默认使用嵌入式版本的 Git。它可能与系统版本不同,并且在某些情况下可能会失败。

    解决该问题的最简单方法之一是告诉 SourceTree 使用系统 Git:

    Preferences > Git > button "Use System Git"
    

    【讨论】:

      猜你喜欢
      • 2014-01-10
      • 2022-01-24
      • 2017-07-28
      • 1970-01-01
      • 2017-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-01
      相关资源
      最近更新 更多