SourceTree 免登录安装教程
SourceTree 是一款拥有可视化界面的项目版本控制软件,适用于git项目管理。
Window版
1.下载
腾讯软件中心下载地址:https://pc.qq.com/detail/17/detail_23237.html
或者sourceTree官网下载:https://www.sourcetreeapp.com/
2.安装
安装包下载之后,双击打开,会出现如下界面(3.2.6版本):
此时提示需要登陆,放着不管,需要再做两件事:
2.1.添加一个 accounts.json 文件
用文件管理器打开 %LocalAppData%\Atlassian\SourceTree 目录(输入,回车即可),在该目录中添加 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
}
]
2.2.修改 user.config 文件
找到 %LocalAppData%\Atlassian\SourceTree.exe_Url_xxxxxxxxxx\3.1.2.3027\user.config 文件,记事本或者其他编辑工具打开,在该文件 <SourceTree.Properties.Settings> 添加以下内容并保存
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>
重新打开 SourceTree,即为已登陆状态,下一步即可。
MAC版教程
1.下载
同上
2.安装
1.打开sourceTree,提示登录,
2. 此时,选中sourceTree,点左上角菜单栏:窗口–>点击显示托管在远端仓库–>弹出拉取失败
3.关掉当前登录窗口,离开(quit)–>确定仓库拉取失败–>进入成功