推送到Git(GitLab)时出现错误401 [英] Error 401 when pushing to Git (GitLab)

查看:785
本文介绍了推送到Git(GitLab)时出现错误401的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了错误


Total 4 (delta 2), reused 0 (delta 0)
error: RPC failed; result=22, HTTP code = 401

当推送到GitLab上的git存储库时.

When pushing to a git repository on GitLab.

它曾经可以工作.

推荐答案

我遇到了同样的问题:公共存储库不强制git对第一个请求进行身份验证,并且git不提供身份验证(至少从版本开始) 1.7.9),然后再按相同的请求.

I had the same issue: public repos don't force git to authenticate on the first request, and git doesn't offer authentication (at least as of version 1.7.9) on subsequent requests of the same push.

这个对GitLab的拉取请求应该解决它;在GitLab 6.3上进行了测试,但是它在旧版本上也可以使用(请告诉我它是否与版本字符串一起失败).

This pull request for GitLab should fix it; tested on GitLab 6.3 but it may apply fine on older versions too (please let me know if it fails along with the version string).

https://github.com/gitlabhq/gitlabhq/pull/5760

这篇关于推送到Git(GitLab)时出现错误401的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆