git设置http免密登录

参考文献:https://www.cnblogs.com/cxx8181602/p/11125539.html

git 配置 https免密码登录

一. 区分https clone 和 ssh clone

不同的克隆方式导致校验方式不同,对应的免秘方式也不一样。
https通过记住账号密码免登,ssh通过校验生成的密钥免登。 通常都用ssh校验。

二.https免密配置方法

设置配置 .git/config

git config --global credential.helper store

[credential]
helper = store

输入一次账号密码后第二次就会记住账号密码。

亲测有用,设置完以后,再去git clone一次代码,输入账号密码,就记住了。第二次在git clone就不用输密码了

猜你喜欢

转载自blog.csdn.net/qq_40657321/article/details/120848976