Mac上的SourceTree新建仓库,从URL克隆。或Push时,要求输入账号密码:
输入四次账号密码后报错:
“2019-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/’
2019-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/’
2019
-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路径。
解决方法:
关闭SourceTree
从Finder中进入路径~/Library/Preferences/ ,找到文件com.torusknot.SourceTreeNotMAS.plist,并删除该文件
此时再打开SourceTree重新从URL克隆,输入一遍账号密码后应该就可以了。如果还不成功,重新执行步骤1、2,再加一步:
进入Mac的“钥匙串访问”App:
点击一下->锁上,再点击一下->解锁
然后再重新启动SourceTree,重新登录,创建新仓库,就能成功了!