【问题标题】:How to update username and password on git remote?如何在 git remote 上更新用户名和密码?
【发布时间】:2019-06-12 07:29:06
【问题描述】:

虽然我可以在 eclipse 上 git fetch/pull/push,但是当我在 GitBash 上 git fetch 时,出现如下错误,如何在远程设置 id/pw?

remote: Invalid username or password.
fatal: Authentication failed for 'https://abc.xyz.co.jp/projects/project.git/'

【问题讨论】:

  • Git(即您在机器上本地运行的git 命令)无法在任何其他机器上设置您的 ID 和/或密码。您需要找到某种方法来告诉另一台机器执行此操作。您本地 Git 所能做的就是提供您提供给本地 Git 的任何用户名和/或密码。

标签: git git-remote git-fetch


【解决方案1】:

如果你跑了

git credentials --help

在 Git Bash 中,您应该获得对您有帮助的文档。它会在我的浏览器窗口中弹出并解释如何设置用户名和密码。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-12-07
    • 1970-01-01
    • 2013-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多