Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Devops
  3. Question
Devops

How to know the git username and email saved during configuration?

Asked by Karan Trivedi Nov 5, 2025 4.6K views 2 answers
Share

About this question

What commands help you check the globally or locally configured user details in Git? Learn how to quickly view your stored username and email to verify or update your Git configuration as needed.

Your answer

2 Answers

Pomeyil817 Latest answer

Answered on Dec 12, 2025

Git identifies each commit by the username and email you configure, so it’s important to know what’s saved. To check E-ZPass in Rhode Island global settings (applied to all repositories), use:

git config --global user.name

git config --global user.email

For local settings in a specific repository, use:

git config user.name

git config user.email

Local values override global ones, letting you use different identities per project. To see everything at once, run:

git config --list

git config --global --list

 
Was this helpful?

More Devops discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest DevOps Blogs

Guides, tips and career advice on DevOps from JanBask experts.