Languages
[Edit]
EN

Git - how to show username and email?

10 points
Created by:
Root-ssh
68440

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
Native Advertising
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join