當前只有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,恩,噠~噠噠~~~
和之前不一樣的界面,無需註冊