Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub帐号的信息设置 #19

Open
chenxiaochun opened this issue Jun 1, 2017 · 0 comments
Open

GitHub帐号的信息设置 #19

chenxiaochun opened this issue Jun 1, 2017 · 0 comments
Labels

Comments

@chenxiaochun
Copy link
Owner

chenxiaochun commented Jun 1, 2017

今天登录GitHub,突然发现我之前的提交记录完全消失了,瞬间进入蒙逼状态 😵。

然后大脑开始高速运转,努力回想我这两天都干了啥,为什么都消失不见了呢。是的,我修改过邮箱地址。想到这儿,立刻进入设置,把之前的邮箱地址重新添加回来。😄,然后之前的提交记录又全都回来了。

image

image

所以,千万不要随便更改自己的邮箱信息,至少不要删除它。因为它和你的所有提交信息都是相关联的,包括Contributions。那如何查看一下我本地库的用户设置信息呢?

查看用户名:

git config --get user.name

查看邮箱:

git config --get user.email

查看所有的设置信息:

git config --list
@chenxiaochun chenxiaochun changed the title GitHub帐号的邮箱设置 GitHub帐号的信息设置 Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant