【问题标题】:Chang git account on VScode在 VScode 上更改 git 帐户
【发布时间】:2020-05-19 03:33:50
【问题描述】:

我只是尝试将 repo 推送到 github,但我得到了这个 dialog

PS : 4495b 是旧账号 我找不到改变它的方法。

我试过了

git config --global --unset credential.helper
  • 重新安装git并重新配置
  • 重新安装VScode

任何想法如何刷新给定的帐户?

【问题讨论】:

    标签: git visual-studio-code


    【解决方案1】:

    如果您确认没有设置git config credential.helper,请先检查远程URL

    cd /path/to/repo
    git remote -v
    

    如果是 SSH URL,请确保其关联的 ~/.ssh/id_rsa(.pub) 不是您旧帐户的私钥/公钥。
    或者~/.ssh/config 没有引用您旧帐户的 SSH 私钥。

    【讨论】:

      猜你喜欢
      • 2020-09-25
      • 1970-01-01
      • 2018-03-19
      • 2023-03-02
      • 2019-10-16
      • 1970-01-01
      • 2014-05-09
      • 2017-02-05
      • 2016-08-20
      相关资源
      最近更新 更多