Mac上的SourceTree新建仓库,从URL克隆,要求输入账号密码:
Mac版SourceTree创建新仓库时输入账号密码报错
输入四次账号密码后报错:
“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创建新仓库时输入账号密码报错

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

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

相关文章:

  • 2021-08-01
  • 2022-12-23
  • 2021-04-15
  • 2021-12-17
  • 2021-04-10
  • 2022-12-23
  • 2021-11-01
猜你喜欢
  • 2021-11-10
  • 2021-10-01
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
  • 2021-05-07
相关资源
相似解决方案