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


While configuring git I ran these two commands:

git config --global "My Name"

git config –global “[email protected]

However, I doubt whether I made a typo or not. So, is there any command to know the name and email which git saved during configuration? Obviously, I can know that using the git log command by looking at the commit history. But for that I have to make commits, right? Can I know that with the help of command line?


The command git config --list will list the settings. There you should also find and

How do I check out a remote Git branch?

Git: What's the best practice to git clone into an existing folder?