Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»GIT»How to Setup Commit Username and Email for Git

    How to Setup Commit Username and Email for Git

    RahulBy RahulJune 27, 20171 Min ReadUpdated:July 27, 2017

    Git client added an identity to each commit. For this Git uses an username and email address to associate with the commit. This name and email change will apply for future commits only.

    Setup git username for a single repository

    Open Terminal and use the following commands to set Git username and email address for your current git repository.

    Set a Git username:

    $ git config user.name "Den Smith"
    

    Set a Git email:

    $ git config user.email "[email protected]"
    

    Setup git username for all repositories

    Use --global option to set username and email globally on system. Open a terminal and use the following commands to set Git username and email address for all the git repository on the system.

    Set a Git username:

    $ git config --global user.name "Den Smith"
    

    Set a Git email:

    $ git config --global user.email "[email protected]"
    
    git
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleTop 5 Diagnostic and Maintenance Software Tools
    Next Article cd command in Linux with Examples

    Related Posts

    How to Create Branch in Git Repository

    Updated:August 4, 20224 Mins Read

    How to Create Empty Branch in Git Repository

    1 Min Read

    How to Install Latest Git on Ubuntu 22.04

    Updated:May 31, 20222 Mins Read

    How To Install Git on Fedora Linux

    Updated:May 31, 20222 Mins Read

    How To Add a Git Remote Repository

    3 Mins Read

    How to Git Reset to Head

    Updated:November 3, 20213 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Import GPG Keys on Ubuntu & Debian (without apt-key)
    • How To Install Google Chrome On macOS
    • How to Install Minecraft on Ubuntu 22.04 & 20.04
    • Running a Cron job every Sunday (Weekly)
    • Running Multiple Commands At Once in Linux
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.