版本控制方面關(guān)于git操作,除了用命令式,更推薦使用圖形界面操作,簡單高效,重要的是可以非常方便的查看目前在哪個分支,修改了那些代碼,提交哪些不提交哪些。
下面說一下source tree(以下簡稱st),這個軟件搜索應(yīng)該都能搜到,其中有個跳過注冊的步驟需要注意一下需要修改的東西,參見這個教程:
教程
如果不想點(diǎn)進(jìn)去那我簡單總結(jié)一下,當(dāng)安裝好sourcetree后,進(jìn)入
C:\Users\你的用戶名\AppData\Local\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
}
]
保存后在進(jìn)入軟件就可以跳過注冊了,打開界面

圖片
可以看到local remote clone add create,熟悉git操作的朋友應(yīng)該很快就能上手。
clone就是將線上的項目克隆到本地,讓st管理
add就是如果你本地已經(jīng)有項目了可以將它和st關(guān)聯(lián)起來,讓st管理

圖片
上面的圖就是一些基本操作,學(xué)習(xí)成本不高,希望大家都能用起來。