When configured for different remote git repository and inconsistent mailbox

Commonly used remote repository such as github, and mailboxes can be configured as a global user name

git config --global user.email "[email protected]"
git config --global user.name "cristiao"

Other libraries such as remote gitlab, for each clone of the local library, the user name and mailbox setting bit local

git config --local user.email "[email protected]"
git config --local user.name "xxxxxx"

Guess you like

Origin www.cnblogs.com/cristiano-duan/p/12289599.html