search

Home  >  Q&A  >  body text

centos 6.4 yum安装git 通过 https clone问题

如题 centos 6.4 yum安装 git 然后 git clone https://xxxxx
然后不提示我输入用户名密码 直接报401错误
请问如何解决

巴扎黑巴扎黑2777 days ago678

reply all(8)I'll reply

  • 阿神

    阿神2017-04-24 09:15:56

    1. Question: I need to use https link
    :: Of course the method on the third floor is possible, but the answer is not what you asked
    :: The answer on the fourth floor is obviously that I didn’t even read the question clearly. Since I asked for a password, it’s obviously a private project
    :: The answer on the first floor should be in the right direction. I haven't completely investigated it yet and suspect that it is still a https jump problem. Now I change the method of displaying the account name and password to log in and bring the account name into https://uid@urlpath. The value has been obtained (the difference is that the account number is different, and according to the analysis, it is believed that the email address will be converted to display the account number first. However, due to the https connection problem, it is estimated that this layer of login dialogue cannot be converted, so directly enter the real account)

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-24 09:15:56

    I have encountered a similar problem recently. I guess it is a problem with the curl library. Can you try installing the curl openssl dev library?

    reply
    0
  • PHPz

    PHPz2017-04-24 09:15:56

    Public or private repo, if it is private, the clone address is different.
    First add the ssh key to github, and then try sudo clone.

    reply
    0
  • 怪我咯

    怪我咯2017-04-24 09:15:56

    Check method to see if it is private
    2. git version. Check your git version. https must be git version 1.7 or above. 401 error occurs in 1.6

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-24 09:15:56

    You can try git clone some publice projects. If successful, determine whether it is a problem with your own project or with git itself

    reply
    0
  • 阿神

    阿神2017-04-24 09:15:56

    Clone does not require a password, it is just a copy command
    You only need to enter your password when you push

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-24 09:15:56

    I have encountered this problem. As everyone from LS said, it is probably a version issue.

    I just uninstalled git and compiled and installed the latest version

    PS Please git clone git@github.com:git/git.git uninstall the original git first. . .

    reply
    0
  • 怪我咯

    怪我咯2017-04-24 09:15:56

    http://blog.csdn.net/zhaozhi406/article/details/30506153 User name and password to create a file
    Problem solved

    reply
    0
  • Cancelreply