如何从Git删除缓存的凭据? [英] How to remove cached credentials from Git?

查看:481
本文介绍了如何从Git删除缓存的凭据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑了

$ git config credential.helper store

然后:

$ git push origin master

在推送之后,我输入了我的凭据,并保存了它们.
我了解到它们以明文形式存储,因此现在我想从默认保存和输入的凭据中删除它们.

After pushing, I entered my credentials and they were saved.
I read that they are stored in plaintext, and so now I want to remove my credentials from being saved and entered by default.

我该怎么做?

推荐答案

在终端中运行以下命令以删除存储在缓存中的凭据

Run the following command in the terminal to remove your credentials stored in the cache

git config --global --unset credential.helper

这篇关于如何从Git删除缓存的凭据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆