git conig

Roast pork with 
git first ---- git config configuration 
@ check the version of git 

  git - Version 

@ View git configuration 

  git config - List 

config List sub-global and local, execute git config in the root directory - List global configuration display, perform in the git repository directory, shows the global and local configuration information. 

@ Global configure git-mail and user name to use 

  git config --global user.name ' XXX '  

  git config --global user.email ' XXX '  

@ configuration of the current git repository mailboxes and user name configured in two ways, 1 . Not used directly --global 2 . Use local 

  Git config the user.name ' XXX '  

  Git config user.email 'XXX '  

  git config   --local user.name ' XXX '  

  git config   --local user.email ' XXX '  

  setting up the config with git - tested List 

@ View git commit record 

  git log

 

Guess you like

Origin www.cnblogs.com/zhizou/p/11746093.html
Git