Linux-如何删除Git凭证 [英] Linux - How to Remove Git Credentials

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

问题描述

我跑了

git config credential.helper存储

git config credential.helper store

然后跑

git push origin master

git push origin master

我在其中输入我的凭据的位置,它们被保存了.

where I entered my credentials and they were saved.

我读到它们以明文形式存储,因此现在我想从默认保存和输入的凭据中删除它们.

I read that they were 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

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

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