SourceTree安装注意事项

1.安装SourceTree时候,可以跳过账户填写流程,即:SourceTree跳过Atlassian账号,

  免登陆,跳过初始设置(http://www.cnblogs.com/diyishijian/p/6726792.html)。
  为防止后续网页失效,现搬运过来具体操作流程:
  1).安装之后,转到用户本地文件夹下的

    SourceTree 目录(默认是:C:\Users\Administrator\AppData\Local\Atlassian\SourceTree),

    找到accounts.json 文件,没有则新建。
  2).输入以下内容保存即可

[
          {
            "$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
          }
        ]

2.不知道是不是bug,SourceTree的默认git账户是无法在SourceTree本身修改的。

  如果不小心添加了很多莫名其妙的账户,那么为了清爽,

  就要删除这些记录。

  方法如下(https://segmentfault.com/q/1010000005268437/)

  同样为了防止网页失效,搬运如下:

    win10 保存在用户凭据里
    控制面板 》 用户帐户 》 管理你的凭据
    选择 [Windows 凭据]
    git 保存的用户信息在普通凭据列表里

posted @ 2017-10-10 20:13  浣溪山  阅读(245)  评论(0编辑  收藏  举报