GitLab 重置认证和添加账号缓存

清除本地账号
git config --system --unset credential.helper

将账号信息添加到缓存文件中,在输入命令之后还是需要在输入一次账号密码 以后就不用了。
git config --global credential.helper wincred

也可以设置缓存时间
git config credential.helper 'cache --timeout=3600'
posted @ 2021-01-15 14:54  青柚  阅读(602)  评论(0编辑  收藏  举报