SourceTree 使用手册(第一篇)

一、SourceTree简介

  SourceTree 是 Windows 和Mac OS X 下免费的 Git 和 Hg 客户端,拥有可视化界面,容易上手操作。同时它也是Mercurial和Subversion版本控制系统工具。支持创建、提交、clone、push、pull 和merge等操作。

二、SourceTree基本使用

(以下以SourceTree For Mac V2.0.5.2中文版为例,托管平台以Github为例)

基本安装
1.1. 不建议在appstore直接搜索下载SourceTree,因为appstore里的版本已经十分老旧(好像是2012年更新的)。建议前往官网下载安装最新版,我这里也提供一个SourceTree for Mac V2.0.5.2的百度云的方便链接。 传送门→SourceTreeDownload
1.2. 拖动安装,Launchpad中打开,continue,输入github账号按下一步完成即可。没有Github账号的朋友,也可以跳过本步骤完成安装

注册GitHub(已有Github账号的朋友请跳过本步骤)
2.1. 打开Github官网 传送门→Github
2.2. 填写必要的信息,点击sigh up for github

三、登录sourcetree
登录时初始设置会碰见比较头疼的问题:
得需要Atlassian账号
注册条件得需要能访问google(需要翻墙)
这里写图片描述

当然还有更好的方法:SourceTree跳过Atlassian账号,免登陆,跳过初始设置
找到用户本地文件夹下的 SourceTree 目录,找到accounts.json 文件,没有则新建。

C:\Users\Administrator\AppData\Local\Atlassian\SourceTree

输入以下内容保存即可


[
{
"$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
}
]

扫描二维码关注公众号,回复: 1851526 查看本文章

这里写图片描述

然后重新打开sourcetree就可以成功跳过初始设置

猜你喜欢

转载自blog.csdn.net/f1204270443/article/details/78412465
今日推荐