上一篇講到了一些關於git工作流中的一些常用命令方法,接下來介紹一款git的視覺化程式碼管理工具SourceTree。
一、下載和安裝
![SourceTree跳過註冊安裝使用](https://i.iter01.com/images/67fb8714fa8a7b5c4cb01b1046260ea72bc8f6e10148d6204de2f93f9b027fcd.png)
![SourceTree跳過註冊安裝使用](https://i.iter01.com/images/b9a4e6f09fe7f6cdb5a6f66c14f0c2bd02c72fa9c3c5af7f80162fb8d64b6b45.png)
這個時候會要求我們註冊,如果你有谷歌賬號,並能上外網那就直接登入吧。 不然 就按照下面這樣的操作來: 先關閉該程式,接下來複制複製%LocalAppData%\Atlassian\SourceTree\到我的電腦位址列敲回車,在該資料夾下面新增 accounts.json檔案
![SourceTree跳過註冊安裝使用](https://i.iter01.com/images/1874a87e40156c2b2cc5e2e93d67bc457c55e5b2db1fd72e60b82be232bed638.png)
[
{
"$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
}
]
複製程式碼
然後重新開啟桌面的Sourcetree軟體,這樣直接跳過註冊了。
![SourceTree跳過註冊安裝使用](https://i.iter01.com/images/983bd11a2851f8a8daf831cd9badd96757045f0d1906a027facb82f4e4d16e28.png)
繼續下一步,會讓你選擇用什麼git
![SourceTree跳過註冊安裝使用](https://i.iter01.com/images/bcb8dd675634e8a3df6eb5d3dd98f8038ae9fe5735d1defbe8cf2c6a3fd0baa5.png)
如果使用git客戶端,選擇我不想使用Mercurial即可
二、 使用方法
接下來新增你的祕鑰
![SourceTree跳過註冊安裝使用](https://i.iter01.com/images/1069945e11d69dede4861185b678786c7ab23b81729cfd2b14e33a5ba2879b8d.png)
使用git flow開發
![SourceTree跳過註冊安裝使用](https://i.iter01.com/images/7d45482c91b80f966adb48444f8404c2efccd6addd85de351292ede4e89cee06.png)
以上就是SourceTree的安裝和使用了。