git客户端无法安装解决方法

2025-11-16 00:00:12

1、点击下一步

git客户端无法安装解决方法

2、关闭安装程序

git客户端无法安装解决方法

3、重复步骤1和步骤2操作,出现步骤3启动图标为止

git客户端无法安装解决方法

4、右键图标属性找到文件位置

C:\Users\Administrator\AppData\Local\Atlassian\SourceTree

git客户端无法安装解决方法

5、切换到截图中目录

C:\Users\Administrator\AppData\Local\Atlassian\SourceTree

其中Administrator可以换成其它用户

git客户端无法安装解决方法

6、在该目录下新增一个文件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

  }

]

复制的时候去掉空行

git客户端无法安装解决方法

7、启动图标

git客户端无法安装解决方法

8、配置git就能使用了

git客户端无法安装解决方法

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢