zl程序教程

您现在的位置是:首页 >  工具

当前栏目

git清除凭证

Git 清除 凭证
2023-09-11 14:16:49 时间
1 . 清除凭证助手
git config --system --unset credential.helper
# 除了system外,还有global、local等范围
# 使用 git config --list 命令这是展示配置属性,只要不存在credential.helper表示清除成功
2. 配置凭证助手
git config --global credential.helper store
# 清除成功后,每次远程操作pull/push/fetch时需要手动输入密码啊。
# 执行这个命令,开启凭证助手,一次输入密码认证成功后会被存储下来。