【问题标题】:Updated my Github password and now I can not push to Github更新了我的 Github 密码,现在我无法推送到 Github
【发布时间】:2019-11-22 06:09:23
【问题描述】:

当提示我添加密码时,我在终端中获得了一个密钥的图像,并且它不允许我手动输入密码。当我按 Enter 时,它给我一个错误,提示密码不正确。

我尝试了以下代码但没有成功(我仍然得到关键图像):

git credential-osxkeychain 擦除 主机=github.com 协议=https

我也尝试在 KeyChain Access 应用程序中更新我的密码,但我在 Github 上找不到任何东西。

【问题讨论】:

    标签: python macos github terminal passwords


    【解决方案1】:

    Git cache 您在内存中的凭据。默认超时时间为 900 秒,即 15 分钟。

    您可以通过此git credential-cache exit 命令使 git 缓存无效。

    最佳做法是配置ssh keys in github

    【讨论】:

      【解决方案2】:

      试试:

      git remote show origin
      
      

      看看你能不能更新你的密码

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2013-01-23
        • 1970-01-01
        • 2018-02-27
        • 2012-12-19
        • 2021-12-22
        相关资源
        最近更新 更多