Skip to content

Configuring Git

Identity

  • Ensure that username and email are setup for Git.
    Either Globally
    Bash
    git config --global user.name "Prasad Manigaradi"
    git config --global user.email "prasad.manigaradi@aadya.tech"
    
    Or locally per repository
    Bash
    cd path/to/repository
    git config user.name "Prasad Manigaradi"
    git config user.email "prasad.manigaradi@aadya.tech"
    

Editor

  • Now that your identity is set up, you can configure the default text editor that will be used when Git needs you to type in a message. If not configured, Git uses your system’s default editor. If you want to use a different text editor, such as nano, you can do the following:
    Bash
    git config --global core.editor nano