sourcetree沒有谷歌帳號跳過註冊的方法

當前只有Win的版本,Mac自行百度(笑)git

不少人用git命令行不熟練,那麼能夠嘗試使用sourcetree進行操做。json

然鵝~~sourcetree又一個比較嚴肅的問題就是,不少人不會跳過註冊或者操做註冊。命令行

廢話很少,咱們直接開始跳過註冊階段的操做。3d

下載好以後會有這麼一個界面要求你註冊或登陸。(無論它)將下面的一串串放進個人電腦的地址欄,打開sourcetree的文件夾blog

%LocalAppData%\Atlassian\SourceTree\

一般長這樣it

對,沒錯,你會看到一個很不和諧的文件你是沒有的登錄

恩,就是它,因此接下來你應該在當前文件夾下建立一個json文件,文件名爲accounts.json百度

(若是不知道如何查看被隱藏掉的後綴名,請自行百度)下載

而後,編輯此文件的內容以下im

 

[
  {
    "$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,sourcetree已經跳過註冊環節了。

相關文章
相關標籤/搜索