From: Giorgos Gasparis <gasp.giorgos@gmail.com>
To: git@vger.kernel.org
Subject: [Feature Proposal] Add a built-in 'git whoami' command
Date: Tue, 31 Mar 2026 17:57:55 +0300 [thread overview]
Message-ID: <CALCP2CjymE-i9TsKB8TmW_0M=ZDbtLPzZFpx4-ba01164b1MOA@mail.gmail.com> (raw)
Hello Git team,
I would like to propose adding a native git whoami command to Git to
easily check the currently active identity.
Currently, users have to run two separate commands (git config
user.name and git config user.email) to check this. This is a frequent
friction point for developers balancing work and personal repositories
who want to double-check their active profile before committing.
To solve this locally, I currently use the following alias in my .gitconfig:
[alias] whoami = !echo "👤 $(git config user.name) | 📧 $(git config
user.email)"
Having a built-in command that provides this kind of unified,
single-line output natively (even as standard plain text without
emojis) would be a great quality-of-life improvement for the wider
community so they don't have to build custom aliases.
Thank you for your time and for maintaining Git, Georgios Gasparis
next reply other threads:[~2026-03-31 15:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-31 14:57 Giorgos Gasparis [this message]
2026-03-31 16:26 ` [Feature Proposal] Add a built-in 'git whoami' command Junio C Hamano
2026-03-31 16:43 ` Kristoffer Haugsbakk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALCP2CjymE-i9TsKB8TmW_0M=ZDbtLPzZFpx4-ba01164b1MOA@mail.gmail.com' \
--to=gasp.giorgos@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).