Set the username and mailbox for git under Ubuntu

Source: Internet
Author: User

Set the username and mailbox for git under Ubuntu

From the slow repair of the yuan, up and down Quest Heart http://yanshaozhi.iteye.com/blog/386752

Although I did not see how to understand, but I use the first total method is set up, set up is not a hint.

Set it up later with: git config--list command to view.

Guides:tell git your user name and email address
Git needs to know your username and e-mail address to properly tag your commits. This is normally do on a global level:

[~]$ git config--global user.name "Lubin"
[~]$ git config--global user.email [email protected]
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 [email protected]
This change would only affect the future commits. Past commits would retain the username and address they were committed with.

Some Tools would 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

Set the username and mailbox for git under Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.