Login/Logout account Git in Terminal/cmd
- First, open Termial/cmd and type:
1. Logout:
1. Logout:
git config --global --unset user.name
git config --global --unset user.email
or
git config --global --unset-all
2. Login:
It is important to configure your Git username and email address as every Git commit will use this information to identify you as the author.
On your shell, type the following command to add your username:
git config --global user.name "YOUR_USERNAME"
Then verify that you have the correct username:
git config --global user.name
To set your email address, type the following command:
git config --global user.email "your_email_address@example.com"
To verify that you entered your email correctly, type:
git config --global user.email
Comments
Post a Comment