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.