Git的简便工具 sourcetree使用
来源:互联网 发布:异世淘宝女王txt百度云 编辑:程序博客网 时间:2024/05/17 23:15
到官网:https://www.sourcetreeapp.com/ 下载sourcetree 进行安装
安装过程中遇到要注册时:
在目录C:\Users\{youruser}\AppData\Local\Atlassian\SourceTree
下创建文件accounts.json
,注意:{youruser}需要替换为登录系统用户名。
写入如下内容:
[ { "$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": "username@email.com" }, "IsDefault": false }]
重启软件,即可免注册使用软件了(主要是注册太麻烦了、、、)
一般配合码云进行共同开发一般的工作流程:项目负责人先把你拉进项目组里 -> 获得项目的https链接->sourcethree软件里 进行clone -》克隆项目到本地-》第一次你要获取你本地的秘钥,然后复制秘钥发给项目负责人 ,让他允许你提交代码。大概就是这样 还不懂就问项目负责人吧
'); })();