sourcetree 跳過首次登入
阿新 • • 發佈:2018-12-12
sourcetree首次登入需要vpn才能訪問目標主機,然而本人手上只有代理沒有vpn咋個辦嘞? 1.下載舊版本的sourcetree https://downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-1.10.23.1.exe?_ga=2.163056572.16084660.1520596135-812401212.1520596135 2. 安裝好以後,先執行一波,看到需要登入的介面就關掉 3. 定位到使用者快取資料目錄:(需要在資料夾選項中 開啟不隱藏資料夾和不隱藏副檔名) 一般為: C:\Users\{使用者名稱}\AppData\Local\Atlassian 進入sourcetree目錄:C:\Users{使用者名稱}\AppData\Local\Atlassian\SourceTree 新增一個檔案: 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 } ]
- 重啟sourcetree軟體