Error 401 when clicking on Git (GitLab)

I get an error

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

By clicking on the git repository on GitLab.

He worked.

+4
source share
3 answers

I had the same problem: public repos did not force git to authenticate on the first request, and git did not offer authentication (at least from version 1.7.9) on subsequent requests the same push.

This pull request for GitLab should fix it; tested on GitLab 6.3, but it can also be used in older versions (let me know if it works with the version).

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

+4
source

After some debugging, I realized that I recently activated "Public clone access" in the project. The remote URL is http:// URL.

Error 401 simply means “access is denied” - so even the account is stored on my system, git tries to click without the account information that causes this error.

+4
source

In my CentOS 6.5 , git 1.7.1 I ran into the same problem, I updated git to 1.7.6.1 , resolving this.

See How to install git using git:

http://akyl.net/how-install-latest-version-git-centos-6x

0
source

Source: https://habr.com/ru/post/1486814/


All Articles