From: https://www.cnblogs.com/lucio110/p/8192792.html
當前只有Win的版本,Mac自行百度(笑)
很多人用git命令行不熟練,那么可以嘗試使用sourcetree進行操作。
然鵝~~sourcetree又一個比較嚴肅的問題就是,很多人不會跳過注冊或者操作注冊。
廢話不多,我們直接開始跳過注冊階段的操作。
下載好之后會有這么一個界面要求你注冊或登錄。(不管它)將下面的一串串放進我的電腦的地址欄,打開sourcetree的文件夾
%LocalAppData%\Atlassian\SourceTree\
通常長這樣
對,沒錯,你會看到一個很不和諧的文件你是沒有的
恩,就是它,所以接下來你應該在當前文件夾下創建一個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 } ]
保存此文件。
重新啟動sourcetree,恩,噠~噠噠~~~
和之前不一樣的界面,無需注冊,一秒999級,我系渣渣輝,你沒有玩過的全新版本,貪玩南粵????畫風好像變得很奇特的樣子。。。
咳咳,,就是這樣,sourcetree已經跳過注冊環節了。