【发布时间】:2021-03-01 20:04:21
【问题描述】:
我的 git 客户端在 Windows 10 机器上。我曾尝试使用无效凭据推送我的代码。现在,每当我尝试推送提交时,它都会给我 HTTP Basic:
Access Denied fatal: Authentication failed exception.
我猜这是因为我之前的凭据无效。我尝试使用 Windows 凭据管理器更改我保存的凭据,但由于安全策略,WCM 在我的公司中被阻止。
能否请您帮帮我,在没有 Windows 凭据管理器的情况下如何更改我已经存储的凭据?
$ git push origin master
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://my-host/gitlab/teamx/myapp.git/'
【问题讨论】:
-
是否可以使用 ssh 密钥代替?您将不再在 WCM 中进行中继。
标签: git windows-10 gitlab credentials git-push