您的位置:首页 > 大数据 > 人工智能

git 设置 用户名和信箱

2015-12-15 00:00 477 查看
Guides: Tell git your user name and email address

Git needs to know your username and email address to properly tag your commits. This is normally done on a global level:

[~]$ git config --global user.name "lubin"

[~]$ git config --global user.email lubin.z@gmail.com

You can override these settings on a per-repo basis:

[~/path/to/repo]$ git config user.name "lubin"

[~/path/to/repo]$ git config user.email lubin.z@gmail.com

This change will only affect future commits. Past commits will retain the username and address they were committed with.

Some tools will assume your github config is in the same place (http://github.com/blog/180-local-github-config):

[~]$ git config --global github.user lubin

[~]$ git config --global github.token 6ef8395fecf207165f1a82178ae1b984
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Git Gmail Blog