SourceTree是用来管理项目更新的,如果你使用git来管理你的代码,那么在eclipse中使用git其实是不方便的,这个软件就是让你使用git来管理代码更加方便。
SourceTree安装之后需要使用账号登陆授权以后才可以使用,以前是可以不登陆的,但是现在是强制登陆。虽然是免费授权,但是不知道是什么原因,登陆经常会失败,翻墙也不行,这里也讲一下跳过注册的步骤
软件下载地址:链接:https://pan.baidu.com/s/1_JyZhXomzTv2TZswoIA3Xw 密码:6j1r
先把安装包下下来,然后打开我的电脑,进入这个路径:C:\Users\Administrator,里面有一个文件夹叫AppDate,可能这个文件夹是隐藏的,那么就把隐藏文件夹设为可见。
点击工具,选择文件夹选项
点击选择隐藏文件夹
在这个路径下C:\Users\Administrator\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
}
]