1. 程式人生 > >sourcetree教程(去掉註冊賬號)

sourcetree教程(去掉註冊賬號)

在開啟sourcetree的時候,我們會出現讓我們去申請賬戶的情況,如下:
這裡寫圖片描述

我們可以去掉這一步直接跳過,需在C:\Users\AppData\Local\Atlassian\SourceTree目錄下新增一個accounts.json檔案,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
} ]

開啟即可跳過註冊賬戶流程