#### 简介
SourceTree是强大的Git/Mercurial桌面客户端,支持Windows和Mac操作系统。通过SourceTree美观简单的界面,你可以放弃命令行了。
#### 官网地址
~~~
https://www.sourcetreeapp.com/
~~~
#### 下载版本
~~~
SourceTreeSetup-2.3.5.0
~~~
#### 安装SourceTree
SourceTree 安装之后需要使用账号登陆以授权,以前是可以不登陆的,但是现在是强制登陆。
方法:
1. 找到SourceTree配置目录一般位于:C:\Users\Administrator\AppData\Local\Atlassian\SourceTree,(即便你安装在其他盘符里);
2. 新建(或修改)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
}
]
~~~
重新点击安装程序,即可跳过注册环节。
#### 选择安装内置Git
![](https://box.kancloud.cn/8b0c2ba06c67610412ba751027aaec1b_400x153.png)
* * * * *
#### 安装Git
~~~
https://git-for-windows.github.io/
~~~
#### 注册 bitbucket
~~~
https://bitbucket.org/account/signup/?utm_source=sourcetree&utm_campaign=post_download&_ga=2.203938905.859807023.1510365950-2106140208.1510365950
~~~
- 目录
- 撤销
- Git reset
- Git revert
- Git reset 命令
- Git的撤消操作 - 重置, 签出和撤消
- 冲突
- 解决Git合并分支发生的冲突
- BASH
- 复制黏贴
- 教程
- 合并
- 合并提交
- 分支
- Gitee(码云)
- Github
- 免费私有库
- 本地仓库推送到github仓库
- 工具
- SourceTree
- 添加git-bash.exe到环境变量
- Git
- 安装
- 配置
- 命令行
- 10个技巧让开发者的Git水平迅速提升
- 3.2 Git 分支 - 分支的新建与合并
- 远程分支
- Git帮助
- Git帮助
- 显示命令帮助
- Git 命令
- 参数配置
- 还原至上次提交
- Git 操作命令
- Git tag
- Git 分支管理
- 认识分支
- 卖主分支
- 分支操作
- 本地仓库远程提交
- Git 分区
- 认识里程碑
- 忽略文件
- 已有项目
- 《Git权威指南》