Mac版SourceTree创建新仓库时输入账号密码报错

Mac上的SourceTree新建仓库,从URL克隆,要求输入账号密码:
Mac版SourceTree创建新仓库时输入账号密码报错_第1张图片
输入四次账号密码后报错:
“2018-01-25 17:07:08.977 git-credential-sourcetree[23269:483753] Something went wrong. one or more parameters required to renew token is nil.

fatal: Authentication failed for ‘https:/…git/’

2018-01-25 17:07:14.983 git-credential-sourcetree[23278:483854] Something went wrong. one or more parameters required to renew token is nil.

fatal: Authentication failed for ‘https://…git/’

2018-01-25 17:07:22.999 git-credential-sourcetree[23285:484038] Something went wrong. one or more parameters required to renew token is nil.

Completed with errors, see above”

最终显示无效URL路径。

解决方法:

  1. 关闭SourceTree
  2. 从Finder中进入路径~/Library/Preferences/ ,找到文件com.torusknot.SourceTreeNotMAS.plist,并删除该文件
    Mac版SourceTree创建新仓库时输入账号密码报错_第2张图片

此时再打开SourceTree重新从URL克隆,输入一遍账号密码后应该就可以了。如果还不成功,重新执行步骤1、2,再加一步:
进入Mac的“钥匙串访问”App:
Mac版SourceTree创建新仓库时输入账号密码报错_第3张图片
点击一下->锁上,再点击一下->解锁

然后再重新启动SourceTree,创建新仓库,就能成功了!

你可能感兴趣的:(笔记)