SourceTree windows版本免注册免登陆使用方法

来源:互联网 发布:淘宝的美工教学视频 编辑:程序博客网 时间:2024/05/17 23:13

问题描述

安装好SourceTree后,首次使用时,需要通过账户登录,但注册或登录界面可能根本无法打开,导致无法进入软件 
这里写图片描述

解决办法

在目录C:\Users\{youruser}\AppData\Local\Atlassian\SourceTree 下创建文件accounts.json ,注意:{youruser}需要替换为登录系统用户名。

写入如下内容:

[  {    "$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": "username@email.com"    },    "IsDefault": false  }]
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23

重新启动软件,顺利进入界面 
这里写图片描述

当然,也可以直接导入证书(别人注册好的证书),新建文件sourcetree.license,然后写入如下内容:

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>Name</key><string>May</string><key>Email</key><string>may2015guo@gmail.com</string><key>Product</key><string>SourceTree</string><key>Signature</key><data>R29s9HpHUSLaHlMHHRn1Js1KSuSB4v5FB5x62kUN8DBlKGCdasuYs3V555UHoGc0oPcOTSk+25VM892kfFh9fPKndYx4cy4uQKmaCqrFPlqOi79ZhBgTJEm5ComXGawCvsvSf6PARGcB26aIrtLBsA5EEwrzNAlsm6p70XCuBN4=</data></dict></plist>