美文网首页
Mac版的SourceTree创建新仓库或Push时输入账号密码

Mac版的SourceTree创建新仓库或Push时输入账号密码

作者: yangluDDD | 来源:发表于2019-02-19 11:17 被阅读3次

    Mac上的SourceTree新建仓库,从URL克隆。或Push时,要求输入账号密码:

    图片1

    输入四次账号密码后报错:

    “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,并删除该文件

    图片2

    此时再打开SourceTree重新从URL克隆,输入一遍账号密码后应该就可以了。如果还不成功,重新执行步骤1、2,再加一步:

    进入Mac的“钥匙串访问”App:

    图片3

    点击一下->锁上,再点击一下->解锁

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

    相关文章

      网友评论

          本文标题:Mac版的SourceTree创建新仓库或Push时输入账号密码

          本文链接:https://www.haomeiwen.com/subject/amjzeqtx.html