How do I check my github settings or who I'm signed in as on my current project through the terminal?

You can see the current configurations, including username, with git config -l.

You'll want to look for user.name, user.email, and github.user.

You can unset configurations using --unset, like git config user.name --unset.

You can also reset configurations using git config user.name "Your Name".


git config -l | grep user.name

This will only output username in the terminal. Similarly, for email type:

git config -l | grep user.email

Note: This will only work on mac. For windows, refer to the comments.

Tags:

Git

Github