下载链接 https://www.sourcetreeapp.com/
window
这个时候会要求注册账号,这个时候关掉就可以了
我们进入%LocalAppData%\Atlassian\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
- }
- ]
然后打开安装好的Sourcetree软件
会重新进入到界面
我们直接下一步,会提示我们注册完成了.
继续下一步,会让你选择用什么git
如果使用git客户端,选择我不想使用Mercurial即可.
Mac
- 打开sourcetree
- 关闭sourcetree
- 命令终端输入
defaults write com.torusknot.SourceTreeNotMAS completedWelcomeWizardVersion 3
- 打开sourcetree即可跳过登录