SourceTree跳過註冊安裝使用

上一篇講到了一些關於git工做流中的一些經常使用命令方法,接下來介紹一款git的可視化代碼管理工具SourceTree。git

1、下載和安裝

下載地址:www.sourcetreeapp.com/json

這個時候會要求咱們註冊,若是你有谷歌帳號,並能上外網那就直接登陸吧。 否則 就按照下面這樣的操做來: 先關閉該程序,接下來複制複製%LocalAppData%\Atlassian\SourceTree\到個人電腦地址欄敲回車,在該文件夾下面添加 accounts.json文件bash

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軟件,這樣直接跳過註冊了。app

繼續下一步,會讓你選擇用什麼git工具

若是使用git客戶端,選擇我不想使用Mercurial便可post

2、 使用方法

接下來添加你的祕鑰spa

使用git flow開發code

以上就是SourceTree的安裝和使用了。cdn

上一篇git命令式開發blog

相關文章
相關標籤/搜索