SourceTree系列第1篇 -->> SourceTree 01 - git 客戶端介紹
SourceTree系列第2篇 -->> SourceTree 02 - 下載安裝
SourceTree系列第3篇 -->> SourceTree 03 - 跳過賬號登錄直接進入主界面
SourceTree 跳過賬號登錄頁面,直接打開主界面
這里只需要修改賬戶相關的文件即可;
1. 找到accounts.json 文件;
* 位置: C:\Users\Administrator\AppData\Local\Atlassian\SourceTree
* 將上面的位置粘貼到文件管理器的路徑中,回車(這里的路徑要按自己電腦的路徑找,可能每個電腦不一樣,如果有快速搜索工具,也可以直接搜索 SourceTree 目錄即可);

* 回車后會看到很多文件夾和文件(每個人的這個目錄可能有所不能);

* 選中 accounts.json 這個文件打開,如果沒有這個文件,手動新建一個文本文件,將后綴改為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
}
]