【问题标题】:Beginning with Heroku. Problem with authetication从 Heroku 开始。身份验证问题
【发布时间】:2019-02-12 19:11:34
【问题描述】:

我是 git/heroku 等方面的菜鸟。我按照教程 https://devcenter.heroku.com/articles/getting-started-with-nodejs#deploy-the-app 工作。

我在 cmd 中运行命令:

  • heroku 登录
  • cd node-js-getting-started
  • heroku create(过去运行)
  • heroku 身份验证:令牌
  • git push heroku master

在最后一个命令之后可能窗口显示我将用户名 "" 和密码 heroku 令牌放在哪里。

但之后,会显示:

     C:\Users\Administrátor\node-js-getting-started>git push heroku master
    git: 'credential-managerd' is not a git command. See 'git --help'.

    The most similar command is
        credential-manager
    remote: !       WARNING:
    remote: !       Do not authenticate with username and password using git.
    remote: !       Run `heroku login` to update your credentials, then retry the git command.
    remote: !       See documentation for details: https://devcenter.heroku.com/articles/git#http-git-authentication
    fatal: Authentication failed for 'https://git.heroku.com/afternoon-fjord-61446.git/'

我真的不知道我现在该怎么办。

【问题讨论】:

  • 你关注这个Do not authenticate with username and password using git.
  • 我使用从“heroku auth:token”获得的用户名“”(空)和密码令牌。
  • 我认为问题是这个错误“git: 'credential-managerd' is not a git command.”
  • 使用 id 密码登录 Heroku 仪表板
  • 作品......?

标签: node.js git heroku


【解决方案1】:

我终于解决了。 我从默认更改了我的.gitconfig 文件

[credential]
helper = managerd

[credential]
helper = manager

我使用用户名“空白”而不是“”(空字符串)和它的工作。

【讨论】:

  • 我很确定managerd 不是此设置的默认值。它更有可能是一个错字。为什么将user.name 设置为"blank"
  • 但是为什么不用你的名字呢? user.name 与身份验证无关。
  • 我不知道你所说的“user.name”是什么意思。我现在继续阅读 Heroku 教程。我刚刚编写了 nodeJS 游戏,现在我想把它上传到某个地方。我在其他事情上是菜鸟。
  • user.name 是用于设置您的姓名的 Git 设置(与 user.email 一起使用)。它可能在您在此处引用的同一个 .gitconfig 文件中,这是我认为您可能所说的“用户名”的唯一含义。
  • 我的 .gitconfig 仅包含我在此处添加的文本。我在 Windows 上。用户名是指输入“git push heroku master”后我需要的用户名
猜你喜欢
  • 2019-03-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-07-23
  • 2015-08-25
  • 2010-11-17
  • 2019-06-19
相关资源
最近更新 更多