git local user name and e-mail name

Many times configure git user name and mailbox, and always forget, and then search the web, a record today against forgetting:

# View the user name and email address 
git config user.name git config user.email
# Modify the user name and email address 
git config --global user.name " username " 
git config --global user.email " Email "

Configuration file location:

/ etc / gitconfig # system-level configuration
 ~ / .gitconfig # current user-level configuration config git - , Ltd. Free Join to modify 
.git config # git repository-level configuration /

Git will give priority to using the library-level configuration, and then a global level configuration, and finally the system-level configuration;

Sources of resources from the network, kept up to date; more information, please visit cnblogs.com/xuyaowen;

Guess you like

Origin www.cnblogs.com/xuyaowen/p/git-config-name-email.html