How to check Git email address and username in terminal?
This article is about how to check GitHub email address and username from your terminal in windows and Mac.
In this post, we will see how to check GitHub email address and username from the terminal.
If you are signed in to your GitHub account on your computer but forgot your user account email address and username then follow the methods below to find your credentials easily.
To check the username and email of your Github account in your terminal we can use the git config [user.name | user.email] command.
This method will work in both Mac and Windows.
Check GitHub username from terminal
To find you're signed in username from the terminal follow the steps:
Step 1 : Open your terminal or CMD in windows.
Step 2 : Type the following git command:
git config user.name
This will show you the signed-in username on your computer.
Check GitHub email from terminal
Step 1 : Open your terminal in windows or Mac.
Step 2 : Type the git command:
git config user.email
This will display the signed-in email.
Related Topics:
How to save username, email and password globally in Github?
Related Posts
Fix 'failed to push some refs to' Git Errors
If you have encountered the "error: failed to push refs to" error in git, then follow this solution provided in this article to easily fix the error.
[Fixed] GitHub "fatal: remote origin already exists" error
Find out to fix "fatal: remote origin already exits" github error while working with remote git repository.
Solved "No such remote origin" Git Error Fatal
Short article on how do I fix remote origin already exists git error faced when trying to push to remote origin in Github and BitBucket.
How to remove node_modules from github or bitbucket
Step by step process to remove node_modules from github or bitbucket after the folder is added to the repository with the help of gitignore file.
