Skip to content

git之soucetree的搭配使用 #4

@fefuns

Description

@fefuns

sourcetree的搭配使用

1.安装篇

下载地址一——最新版:https://www.sourcetreeapp.com/download/ (该工具在首次使用时需要翻墙用到谷歌账号

下载地址二——1.9.6.2中文版:链接:http://pan.baidu.com/s/1bp4gwcn 密码:v9jl

==鉴于现在翻墙工具越来越不稳定的情况下,可以使用以下方案跳过初始设置,免登录直接使用==

方法:

  1. 首先,安装完 SourceTree 以后先运行一次,弹出初始化登录页面后退出。
  2. 找到SourceTree配置目录一般位于:C:\Users\Administrator\AppData\Local\Atlassian\SourceTree,(即便你安装在其他盘符里),或者打开我的电脑在最上方地址栏直接输入以下地址:
%LocalAppData%\Atlassian\SourceTree\
  1. 新建(或修改)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
  }
]
  1. 再次打开 SourceTree 就可以直接跳过登录进入软件页面了。

2.soucetree首次使用基础设置

要想ssh私钥和Linux下的通用,要将SourceTree一般选项下的SSH Client类型改为OpenSSH。

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions