Author:
Check User and Email⚓︎
This guide helps you check your Git user email and other configurations.
Local Git User-email check⚓︎
You can check the user name and email configurations of your current Git repository, global Git configurations, or system Git configurations by running the following command:
terminal
git config --local/--global/--system user.email
git config --local/--global/--system user.name
#>>> Your Name
#>>> your.email@example.com
Update Git User-email⚓︎
You can setup or update your Git user and email by following below steps:
- Set up system user name and email (optional, usually requires admin access):
- Set up global user name and email (recommended for most users):
- Set up local user name and email for repository specific override:
- Rewrite the last commit author info and update the remote (only if you already committed/pushed with the wrong identity). Note that this will rewrite history, so use with caution if you have collaborators.