下载windows git
https://git-scm.com/
修改安装路径 之后一路next就可以了
配置用户信息
git config --global user.name “mlp”
git config --global user.email “maoluping111@163.com”
看配置成功没有
git config --list
客户端gui界面(windows)
SourceTree 3.3.8安装跳过注册安装
1、访问官网下载SourceTree最新版本 https://www.sourcetreeapp.com/
2、安装SourceTree 3.3.8,执行到选择 bitbucket 的界面退出。
3、到 C:\Users{当前用户名}\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
}
]
4、在同级文件夹,后缀随机码有所不同,前面基本一致
C:\Users\Administrator\AppData\Local\Atlassian\SourceTree.exe_Url_ul4qrk3hz4zqb14vcaiypmrdv255kkqk
打开user.config文件,在sourceTree…标签内加入
<setting name="AgreedToEULA" serializeAs="String">
<value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>
5、重启软件后就已经跳过了注册/登录的步骤,此时会弹出选择第一个内嵌版即可
弹出如下,选择第四个不想使用Mercurial,安装即可完成
最后就会弹出管理页面了