Is there a way to get the name of the user, given only their username?
Something like this output git show <username>
(I know this doesn't work)
username: username name: First Last email: email@address
I know I can do this with a GitHub api call, but would prefer to keep it within the CLI.
In your terminal, navigate to the repo you want to make the changes in. Execute git config --list to check current username & email in your local repo. Per repo basis you could also edit . git/config manually instead.
With the default configuration of git on windows, this is stored in Windows under: control panel => User => Credential manager .
If you want to check your configuration settings, you can use the git config --list command to list all the settings Git can find at that point: $ git config --list user.name=John Doe user.
git config user.name git config user.email
I believe these are the commands you are looking for.
Here is where I found them
git config --list
git config -l
will display your username and email together, along with other info
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With