码迷,mamicode.com
首页 > 系统相关 > 详细

设置ubuntu 下git 的用户名和邮箱

时间:2015-02-02 17:57:24      阅读:1243      评论:0      收藏:0      [点我收藏+]

标签:

设置ubuntu 下git 的用户名和邮箱

 

摘自  慢慢修远路,上下求索心 http://yanshaozhi.iteye.com/blog/386752

虽然我没看怎么明白 但我用第一总方法就设置好了,设置好了是不会有提示的。

设置好以后就用 :git config --list 命令查看。

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

 

设置ubuntu 下git 的用户名和邮箱

标签:

原文地址:http://www.cnblogs.com/tomr/p/4268156.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!