今天部門老大說讓我用git的可視化工具sourcetree,興高采烈的去下載下傳了,準備克隆倉庫的時候居然要注冊,然後注冊的那個頁面打不開,百度一查,原來又是牆,無奈配了半天公司的代理伺服器,各種問題,一配代理,qq消息都能發出去,但是網站打不開,無語了半天,找了個免注冊的方法,共享
首先下載下傳sourcetree,官網上下載下傳比較慢,我是在csdn上下載下傳的,
位址http://download.csdn.net/download/lsw1991abc/9392073
不用多說安裝,然後找到在本地的sourcetree緩存檔案,路徑一般如下
C :\Users\Administrator\AppData\Local\Atlassian\SourceTree
前方高能(最主要的幹貨)
建立一個accounts.json檔案(都是建一個.txt檔案,然後改字尾),将如下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了,耶