Git从命令行注销用户 [英] Git log out user from command line

查看:3999
本文介绍了Git从命令行注销用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有用于注销git的命令?我把我的电脑转到别人那里,不想把git连接到我的账户中。

解决方案

〜/ .ssh

删除您的用户设置:

  git config --global --unset user.name 
git config --global --unset user.email

(或所有您的全局设置:

  git config --global --unset-all 



也许还有其他与凭证存储相关的内容,但我总是通过SSH使用git。


Is there a command for logging out of git? I'm turning my computer over to somebody else and don't want the git to be attached to my account in the terminal.

解决方案

Remove your SSH keys from ~/.ssh (or where you stored them).

Remove your user settings:

git config --global --unset user.name
git config --global --unset user.email

(or all your global settings:

git config --global --unset-all

)

Maybe there's something else related to the credentials store, but I always used git over SSH.

这篇关于Git从命令行注销用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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