当前位置: 代码迷 >> 综合 >> sourceTree clone显示无效代码及拉取报错
  详细解决方案

sourceTree clone显示无效代码及拉取报错

热度:29   发布时间:2023-12-22 09:57:26.0

错误如下:
在这里插入图片描述
在这里插入图片描述
解决方法:在文件中全局搜索sourcetree, 然后将所有有关的 sourcetree文件全部删除,包括项目中 .git文件夹中的sourcetree.config文件,再重新安装就可以了(多搜索几遍,确保所有的sourcetree文件都删除了)

从官网下载的souretree需要登陆,可以在%LocalAppData%\Atlassian\SourceTree\ (直接复制到地址栏回车一下就可以找到)文件中新建accounts.json ,重新启动sourcetree就可以跳过登录了

//accounts.json
[{
    "$id": "1","$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity","Authenticate": true,"HostInstance": {
    "$id": "2","$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount","Host": {
    "$id": "3","$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount","Id": "atlassian account"},"BaseUrl": "https://id.atlassian.com/"},"Credentials": {
    "$id": "4","$type": "SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account","Username": "","Email": null},"IsDefault": false}
]
  相关解决方案