How to check GitHub email address and username from terminal?


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.

This method will work in both Mac and Windows.

Check GitHub username from terminal

To find your 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?

How to change git username and password on PC

Open Github Repository Directly In Vscode In Browser Online


💾 Recommended Articles