Skip to main content
Home
Techies Briefcase
~ by Hari Venu

Main navigation

  • Home
  • About me
  • Photos
  • My Bookmarks

Breadcrumb

  1. Home
  2. How To Configure Git Username and Email Address ?

How to configure Git username and email address ?

By hari, 27 March, 2023

Global Git username and email

The global git username and email address are associated with commits on all repositories on your system that don’t have repository-specific values.

To set your global commit name and email address run the git config command with the --global option:


$ git config --global user.name "Your Name"
$ git config --global user.email "youremail@yourdomain.com"

Once done, you can confirm that the information is set by running:


$ git config --list

Make sure the output contains the user.name and user.email are correct as you set above

The command saves the values in the global configuration file, ~/.gitconfig:

Git username and email for a single repository

If you want to use a different username or email address for a specific repository, run the git config command without the --global option from within the repository directory.

Let's say you want to set for your project abc, then just open terminal from abc then run these command.


$ git config user.name "Your Name"
$ git config user.email "youremail@yourdomain.com"

Once done, you can confirm that the information is set by running:


$ git config --list

Make sure the output contains the user.name and user.email are correct as you set above

The repository-specific setting are kept in the .git/config file under the root directory of the repository.

Tags

  • Git
 

Topics

  • Composer
  • Commad Line Tools
  • JavaScript
  • Drupal
  • Solar Panel
  • Permission
  • Libraries
  • MySQL
  • Commad Line
  • RSA
  • VSCode
  • Windows
  • Entity Query API
  • Ubuntu
  • Bash Script
  • Drush
  • Bower
  • Errors
  • Workflow
  • File API
  • Docker
  • Linux
  • Lando
  • Articles
  • Views
  • Nginx
  • Twig
  • Multilingual
  • OOPs
  • Coder
  • Solar Power
  • PHP
  • Field API
  • Android
  • Cache
  • Webform
  • jQuery
  • phpcbf
  • Ajax API
  • Distribution
  • Drupal Behavior
  • Learning
  • kali
  • professional development
  • Neuron AI
  • Jellyfin
  • SSH
  • URL
  • Macbook
  • WSL2
  • Drupal AI
  • NPM
  • Git
  • Form API
  • phpcs
  • Drupal Console
  • Codesniffer
  • Moderation
  • PHPSeclib
  • Taxonomy
  • Mac OS
RSS Feed

Who am I !!!

Hari Venu V
harivenu.v1992@gmail.com
Mobile : +91 9895164181
Whatsapp : +91 9895164181
Linkedin
Drupal.org
Github

Document
Resume.pdf (114.38 KB)

Work !!!

Fulltime Developer @ QED42
hari.venu@qed42.com
Linkedin

Powered by Drupal & Maintained by Hari