问:Sourcetree 错误:“git status”失败,代码为 -1”

dev*_*mil 12 ssh status atlassian-sourcetree apple-m1

Sourcetree 在尝试从书签访问项目时显示此错误 'git status' failed with code -1",而且我无法从远程列表或通过 url 手动克隆任何其他项目。

SSH 连接良好。命令 ssh -T git@github.com显示 -Hi "name"! You've successfully authenticated, but GitHub does not provide shell access. 命令git clone也可以正常工作并获取项目。

dev*_*mil 27

通过点击options > git > Use System Git并设置使用系统Git版本解决。

  • 在 macOS 上“首选项 > Git > 使用系统 Git” (4认同)