github - 在使用http协议时,git clone操作需要进行输入密码验证吗?
伊谢尔伦
伊谢尔伦 2017-05-02 09:47:33
0
2
556

我在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:本问题源于本站的另一个问题,我在回答其他人的问题时,突然想到了这个问题。

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

Antworte allen(2)
Ty80

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

为情所困

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

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!