下载安装包,我是在腾讯管家下载的
下载之后 由于这两者的账户都是需要外网的连接,所以推荐破解账号登入以下方式
先点击x掉看路径%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
- }
- ]
打开 %LocalAppData%\Atlassian,进入“SourceTree.exe_Url_iayhtc13zv3obzuz5vchezjs1az2q5ef”,接着进入"3.3.8.3848"目录,打开user.config文件,在里面加入六行代码放在
- <setting name="AgreedToEULA" serializeAs="String">
- <value>Truevalue>
- setting>
- <setting name="AgreedToEULAVersion" serializeAs="String">
- <value>20160201value>
- setting>
保存文件之后再双击打开sourcetree如图界面,选择我不想使用
安装完成
克隆下来之后本地修改一个文件然后提交