前提:先安装git
安装完成
点击git bash
1、解压后先运行该应用程序
2、c盘里面会生成souretree的文件夹
3、C:\Users\admin\AppData\Local\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
}
]
在souretree文件里面新建一个hello.txt的文件,souretree会自动刷新,选中hello.txt,点击右侧暂存,hello.txt变成绿色,
1、点击文件选择克隆、新建。
2、输入源路径,再输入git账号和密码
先拉到本地分支,再推送到远程。
然后登录git
代码审查员操作
1、登录gitlab审查代码