为什么我在将更改推送到 github 时会在 git 中收到 401 错误?

发布于 2024-09-14 21:03:02 字数 392 浏览 3 评论 0原文

当尝试从 Windows XP 上的 cygwin 命令提示符将更改推送到 github 时,出现以下错误。

$ git 推送 密码:[我的密码-此处] 错误:访问 https 时,请求的 URL 返回错误:401 ://[username]:github.com/[username]/[repository-location]/info/refs

fatal: HTTP request failed

来自谷歌的搜索似乎指向更改Windows上证书文件的路径,为了克隆存储库我已经完成了。

I get the following error when trying to push changes to github from the cygwin command promt on windows xp.

$ git push
Password: [my-password-here]
error: The requested URL returned error: 401 while accessing https://[username]:github.com/[username]/[repository-location]/info/refs

fatal: HTTP request failed

Searches from google seemed to point at changing the path to the certificate file on windows, which i had already done in order to clone the repository.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遇见了你 2024-09-21 21:03:02

事实证明我的密码非常安全并且包含“£”符号。要在我的键盘上获得此功能,请在命令提示符中输入密码时按 Shift+3,它会生成“#”符号。我的键盘设置是正确的,我猜这个问题是由于 cygwin 窗口造成的。

我的解决方案是更改我的 github 密码,使其不包含此字符

Turns out that my password is quite secure and contains the '£' symbol. To get this on my keyboard it's Shift+3 when typing my password into the command prompt it was producing a '#' symbol. My keyboard settings are correct I'm guessing this issue is due to the cygwin window.

My solution was to change my github password so it doesn't contain this character

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文