Git error 401, git401

Source: Internet
Author: User

Git error 401, git401

Error message:
Error: The requested URL returned error: 401 Unauthorized while accessing https://git.oschina.net/xxx/xxx.git/info/refs
I want to move my local project to the git of oschina and then get it from the service git. My server is centos6.5 and the project library is private, the above error occurs when pulling the file. After reading the solution provided by netizens and updating git, I confirmed the accuracy of the following answers.
This is a git issue before 1.7.10. It does not prompt you to enter the user name and password.
This is mainly because the git version is too low.
Centos6.5 the default installed git version is 1.7.1.
If you don't believe it, you can use git vesion to check if the version is 1.7.1. The solution is 2. The first is to publish the project library. Of course, this depends on your choice. The second is to compile and update git, use RPM.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.