Skip to main content
Home
Techies Briefcase
~ by Hari Venu

Main navigation

  • Home
  • Tools
    • Placeholder Image
    • JSON Diff
    • QR Code Generator
    • Random String Generator
    • HTML to PDF Generator
  • About me
  • Photos
  • Search

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

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

Online Resume : Online Resume

Work !!!

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

Powered by Drupal & Maintained by Hari