Sourcetree,git status 失败 错误代码128:fatal:this operation must be run in a work tree
表现:
原因:
添加按钮的描述是“选择工作副本仓库添加到sourcetree”,
自己理解成了“是把git版本仓库添加到sourcertree”,选择的一直是项目的.git仓库路径,导致一直报错如下:
解决:
直接在repository中输入项目路径(项目路径包括项目代码+.git仓库)。
添加按钮的描述是“选择工作副本仓库添加到sourcetree”,
自己理解成了“是把git版本仓库添加到sourcertree”,选择的一直是项目的.git仓库路径,导致一直报错如下:
直接在repository中输入项目路径(项目路径包括项目代码+.git仓库)。
转载于:https://my.oschina.net/qungmu/blog/1933098