SourceTree跳过注册安装使用

8,557 阅读1分钟

上一篇讲到了一些关于git工作流中的一些常用命令方法,接下来介绍一款git的可视化代码管理工具SourceTree。

一、下载和安装

下载地址:www.sourcetreeapp.com/

这个时候会要求我们注册,如果你有谷歌账号,并能上外网那就直接登录吧。 不然 就按照下面这样的操作来: 先关闭该程序,接下来复制复制%LocalAppData%\Atlassian\SourceTree\到我的电脑地址栏敲回车,在该文件夹下面添加 accounts.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软件,这样直接跳过注册了。

继续下一步,会让你选择用什么git

如果使用git客户端,选择我不想使用Mercurial即可

二、 使用方法

接下来添加你的秘钥

使用git flow开发

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

上一篇git命令式开发