您的位置:首页 > 其它

gitlab和sourcetree的使用

2017-09-27 16:56 155 查看
1.sourcetree安装时跳过Atlassian注册

C:\Users\'username'\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
}
]


2.重新打开sourcetree客户端,此时应该已经跳过Atlassian注册,然后安装git,安装Mercurial

3.注册gitlab账户,完成后,在sourcetree中打开 “工具”-》“选项”,配置用户信息,“全名”是gitlab用户名,“邮件地址”是gitlab邮箱

4.配置完成后,在本地仓库中,新建仓库,输入源路径url,设置本地目标路径以及项目名称,最后进行clone
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: