Linux 的Git客户端免密登录

参考链接://www.greatytc.com/p/e946acf9f26e

前提,使用http方式clone

1、git config --global credential.helper store

2、git config --list

出现credential.helper=store说明操作成功。

后面操作的时候只需要输入一次密码之后,就可以免密码操作了。


git账号密码输入错误后,再次操作会自动使用上次输入错误的账号密码:

remote: HTTP Basic: Access denied

fatal: Authentication failed for 'http://xxx.git/'

解决方法

设置清空git保存的账号密码并每次操作时强制输入账号密码,即git不自定保存账号密码

git config --system --unset credential.helper

设置git自动保存输入的账号密码

git config --global credential.helper store

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。