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