mac下SourceTree出现错误:fatal: could

作者: 山水相逢z | 来源:发表于2018-09-05 13:29 被阅读14次

    昨天使用SourceTree提交代码的时候突然遇到了一个错误:

    fatal: could not read Username for 'xxx': Device not configured
    

    之前一直都是好的,但是用Android Studio提交代码是可以的。回想了一下,可能是因为捣鼓mac自带的钥匙串,导致SourceTree使用其中存储的密码的时候出现了问题。
    花了些时间Google了一把,尝试了几种解决办法,最后终于在stackoverflow上成功找到了一种解决办法。

    https://stackoverflow.com/questions/40274484/fatal-could-not-read-username-for-https-github-com-device-not-configured

    1536110774447.jpg

    我是使用下边那个方法解决的:
    在偏好设置中,设置git版本为系统版本。

    看了一下相关文章,说可能是SourceTree软件bug。

    相关文章

      网友评论

        本文标题:mac下SourceTree出现错误:fatal: could

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