美文网首页
SourceTree 免登录跳过初始设置的方法

SourceTree 免登录跳过初始设置的方法

作者: JoyceChen_ | 来源:发表于2018-12-05 14:40 被阅读91次

    很多人用git命令行不熟练,那么可以尝试使用sourcetree进行操作。

    然鹅,SourceTree安装之后需要使用账号登陆授权以后才可以使用,需要VPN。这里就分享一下跳过这个初始化的步骤。(适用于win版)

    个人试了3.0.8普通用户版没有效果,请安装企业版https://www.sourcetreeapp.com/enterprise

    企业版默认安装在 %programfiles(x86)%\Atlassian 目录。

    SourceTree 免登录跳过初始设置的方法

    • 首先,安装完SourceTree以后先运行一次,弹出初始化登录页面后退出。

    • 打开我的电脑,在最上方的地址栏直接输入以下地址:

    %LocalAppData%\Atlassian\SourceTree
    如图:

    image
    • 在这个目录下新建一个名为accounts.json的文件。


      image
    • 使用文本文档打开这个文件,将以下内容复制到其中后保存。

    [
    
      {
    
        "$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
    
      }
    
    ]
    
    • 再次打开SourceTree就可以直接跳过登录进入软件页面了。

    相关文章

      网友评论

          本文标题:SourceTree 免登录跳过初始设置的方法

          本文链接:https://www.haomeiwen.com/subject/yftwcqtx.html