为什么我在将更改推送到 github 时会在 git 中收到 401 错误?
当尝试从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明我的密码非常安全并且包含“£”符号。要在我的键盘上获得此功能,请在命令提示符中输入密码时按 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