SourceTree是最好用的版本管理客户端软件,没有之一。本人将以连载经验的形式来详细讲述如何利用sourceTree去进行代码或文件的版本管理。教程一将讲述 克隆,提交,和推送。
1、首先下载
[官网]下载:(https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.1.3.exe)
也可以百度云盘下载
链接:(https://pan.baidu.com/s/1_BlPXwHO84Cw9LfcHSYfyQ)
提取码:gf7f
链接:https://pan.baidu.com/s/1W5rkiXF4DKBvUMGl5Gw5Lw 密码:djmg
2、接下来就是安装了,安装好以后,在轮到注册界面的时候,不要继续往下走,然后在你的本地地址栏输入以下路径:
%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
}
]
然后再到\Atlassian\SourceTree.exe_Url_thpzhjzhotag0tirjtpjdhocb3sqsdpg\3.2.6.3544的路径下找到user.config 文件输入以后代码并保存重启scouretree
<setting name="AgreedToEULA" serializeAs="String">
<value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>

image.png
这里我们选择下载一只被sourcetree使用的内嵌版git。选择这个就会在sourcetree的安装路径下安装git,以后用来远程连接github。然后会进行git的下载

image.png

image.png
安装完git之后就会进入sourcetree的页面,也就是说sourcetree的安装成功了。