# SourceTree破解免登录(windows版)

## 方法一: 代理(推荐)

使用代理即可正常访问 `Atlassian` 的服务

## 方法二: 无代理

1. 初次运行安装 `SourceTree` 弹出如图,然后退出 ![安装](https://github.com/ougege/blog/blob/master/Images/Windows/SourceTree免登录,跳过初始设置/install.jpg)
2. 在系统盘 `C:\Users\你的电脑名字\AppData\Local\Atlassian\SourceTree` ,新建一个 `accounts.json` 文件,粘贴入以下代码

   ```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
     }
   ]
   ```
3. `3.3.8` 以后版本需要进一步修改 `user.config`

   ```HTML
   <!-- 进入上一步SourceTree目录,选择第二项进入,修改uers.config文件 -->
   <setting name="AgreedToEULA" serializeAs="String">
    <value>True</value>
   </setting>
   <setting name="AgreedToEULAVersion" serializeAs="String">
     <value>20160201</value>
   </setting>
   ```
4. 重新执行安装步骤,然后选择 `我不想使用Mercurial`

   ![不使用Mercurial](https://github.com/ougege/blog/blob/master/Images/Windows/SourceTree免登录,跳过初始设置/choose.jpg)
5. 也可以在进入软件主界面中的设置配置 `ssh` 客户端

   ![配置ssh客户端](https://github.com/ougege/blog/blob/master/Images/Windows/SourceTree免登录,跳过初始设置/ssh_config.png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ougege.gitbook.io/blog/docs/articles/windows/sourcetree-po-jie-mian-deng-lu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
