git config and delete, take Alias

Source: Internet
Author: User

1. Initialize user-submitted user name, mailbox

$ git config--global user.name chenchangqing //Configure user name  --global user.email [email protected]  126//Configure Mailbox --list--//query configuration user.name=chenchangqinguser.email[email Protected]126. com

2. Continue to add a user.name

$ git config--global--add user.name changqing //New  ----list--global user.name=chenchangqinguser.email[email protected]126. Comuser.name=changqing

3. Delete a User.Name

$ git config--global--unset user.name  //Reset    --global----global----GL Obal----list--globaluser.email[email protected]126.comuser.name =changqing

4. Reset User.Name

$ git config--global--------list--global user.email[email protected]126  . Comuser.name=changqing

5. Command aliases

$ git cc             CA            checkout      cherry        Cherry-pick   citool        clean         clone         cm            Column        Commit        config        $ git cc             CA            checkout      cherry        Cherry-pick   Citool        Clean         clone         cm            column        commit        config--  Global Alias.ci commit$ git cc             CA            checkout      cherry        cherry-pick   ci            citool        Clean         clone         cm            column        commit        

The red command function is to use git CI directly when the user wants to submit the code

git config and delete, take Alias

Related Article

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.