Question: 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.

Answer: 
Use this to see the logged in user (the actual git account):

```
git config credential.username

```

And as other answers the user email and user name (this is differenct from user credentials):

```
git config user.name
git config user.email

```

To see the list of all configs:

```
git config --list

```
its So Simple You Just Copy and Past

**For List Of All Config** :- `git config --list`

**and Also You Can Try** :- `git config -l`

if you need to perticular Than You Can Use

**user name** :- `git config user.name`

**user email** :- `git config user.email`

If you need To add Config Than

**user name** :- `git config user.name "name of user"`

**user email** :- `git config user.email "email of user"`

Hope its HelpFull,
Thank You