Languages
[Edit]
EN

Git - how to show username and email?

10 points
Created by:
Root-ssh
6557

1. Overview

In this post we cover topic of how to show username and email configurations with git.

We can show configurations for:

  1. global (all repositories)
  2. single repository

Git configuration works the same under Windows, Linux and macOS.

2. Git - show global username and email configuration

  1. Open command line (eg git bash)
  2. Show username and email
    # show username
    git config user.name
    # show email
    git config user.email

3. Git - show username and email configuration for single repository

  1. Open command line (eg git bash) and change directory into specific repository
  2. Show username and email
    # show username
    git config user.name
    # show email
    git config user.email

4. Git - set username and email

It is outside of the scope of this post and we cover this topic under below post, link:
Git - how to set username and email?

References

  1. Git config - Docs
  2. Getting Started - First-Time Git Setup
  3. Github - Setting your commit email address
Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.