Git configuration related essential command

Set user email and name after removing previous all :  
git config --global --replace-all user.email "new@mail.com"
git config --global --replace-all user.name "newname"

Set user email and name : 
git config --global --user.name "setname"
git config --global --user.email "set@mail.com"

Show current user email and name : 
git config --global --user.name
git config --global --user.email

Comments

Popular posts from this blog

WP register_post_type() with custom CMB2 meta box

Git post receive setup at server for git push to the production from local machine