SourceTree是最好用的版本管理客戶端軟件,沒有之一。本人將以連載經(jīng)驗的形式來詳細(xì)講述如何利用sourceTree去進(jìn)行代碼或文件的版本管理。教程一將講述 克隆,提交,和推送。
1、首先下載
[官網(wǎng)]下載:(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、接下來就是安裝了,安裝好以后,在輪到注冊界面的時候,不要繼續(xù)往下走,然后在你的本地地址欄輸入以下路徑:
%LocalAppData%\Atlassian\SourceTree\
然后再次文件路徑下新建一個名為accounts.json的文件,內(nèi)容如下:
[
{
"$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使用的內(nèi)嵌版git。選擇這個就會在sourcetree的安裝路徑下安裝git,以后用來遠(yuǎn)程連接github。然后會進(jìn)行g(shù)it的下載

image.png

image.png
安裝完git之后就會進(jìn)入sourcetree的頁面,也就是說sourcetree的安裝成功了。