SourceTree Gitlab push error:The requested URL returned error: 502 pull push失败clone克隆无效的源路径

使用SourceTree 遇到一个问题,打开原先的项目不管是push pull都是失败的,但是命令行模式却是可以的。报错类似

The problem is not with git. Rather, the site is giving you a 502 error i.e a Bad Gateway error. Some of the causes and how to fix 502 is given here

添加账户提示无用户什么的。

clone 克隆时也提示无效的源路径。

这时候可能是内嵌的git没有安装。

解决方案。

工具->选项->git->如图操作。

SourceTree Gitlab push error:The requested URL returned error: 502 pull push失败clone克隆无效的源路径

完成之后点确定,然后就可以正常使用了。