Manage git config global file – add or remove settings

To see the list of existing users run this command below:

git config --global --list

Now to add new user :

git config --global --add user.name <your name>
git config --global --add user.email <whatever>

To remove any user

git config --global --unset-all user.name
git config --global --unset-all user.email
git config user.name 'your user name'
git config user.email 'your email name'

you can config for your every company project。And global’s user name set your private Github name and email.I thought this should be the best way for handle this condition.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s