Asroads'Blog 君子不器
Mac电脑sourcetree导入git项目报错git status failed with code -1
发布于: 2023-02-27 更新于: 2024-03-02 分类于: tool 阅读次数: 

这里是你博客列表显示的摘要文字,前几天帮前同事配置Mac电脑环境,在使用sourcetree 导入git项目的时候一直报错git status failed with code -1,重装软件还是如此,后面找到了原因,下面记录一下。

Mac电脑是M1芯片,Sourcetree报错如下

1
git status failed with code -1

出现的原因:M1运行x86的需要安装Rosetta2转译

解决方法:

1
softwareupdate --install-rosetta

再输入

1
A

成功解决问题!

--- 本文结束 The End ---