Heim  >  Fragen und Antworten  >  Hauptteil

github - 在使用http协议时,git clone操作需要进行输入密码验证吗?

我在Github官方的帮助手册上看到了这句话:

When you git clone, git fetch, git pull, or git push to a remote repository using HTTPS URLs on the command line, you'll be asked for your GitHub username and password.
当你在命令行中使用HTTPS的URL来对远程仓库进行git clone, git fetch, git pull, 或者 git push操作时,你会被要求输入Github的用户名和密码。

但是实际上我在git clone(使用http协议)从来没遇到过要求输入用户名和密码,难道是帮助文档写错了吗?

NOTE:本问题源于本站的另一个问题,我在回答其他人的问题时,突然想到了这个问题。

伊谢尔伦伊谢尔伦2727 Tage vor568

Antworte allen(2)Ich werde antworten

  • PHP中文网

    PHP中文网2017-05-02 09:49:33

    很有可能你在之前已经输入过了
    因为我之前遇到过就是得输入账号跟密码
    也不知道你这边是什么情况
    后来提交的时候就没有再输入过

    Antwort
    0
  • 为情所困

    为情所困2017-05-02 09:49:33

    如果项目是开源的,那么执行git clone的时候是不需要输入用户名或者密码阿德,只有在修改项目之后提交代码的时候才会要求输入账号密码。

    Antwort
    0
  • StornierenAntwort