如何删除终端中的github账户 [英] How to delete a github account in terminal

查看:240
本文介绍了如何删除终端中的github账户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Mac上删除我在终端上的原始github帐户,并切换到新的github帐户。我该怎么做?

I want to delete my original github account in terminal on my mac and switch to a new github account. How can I do that?

推荐答案

您可以通过在终端中执行以下命令来使用凭证助手来擦除钥匙串条目:

You can use the credential helper to erase your keychain entry by doing the following command in terminal:

$ git credential-osxkeychain erase
host=github.com
protocol=https
[Press Return]

要添加新帐户,您可以执行以下命令:

To add your new account you can do the following commands:

git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL ADDRESS"

这篇关于如何删除终端中的github账户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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