Skip to content

Instantly share code, notes, and snippets.

@brettmillerb
Created January 14, 2019 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettmillerb/14f8a8ef617899b8cac93376a83045b4 to your computer and use it in GitHub Desktop.
Save brettmillerb/14f8a8ef617899b8cac93376a83045b4 to your computer and use it in GitHub Desktop.
Git Whoami
# Stolen from here: https://github.com/petere/git-whoami/blob/master/git-whoami
function Git-Whoami {
$author = git config user.name
$email = git config user.email
[pscustomobject]@{
Author = $author
Email = $email
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment