How to .gitconfig

Find out more!

Tags:

🌱 Created: 30/03/2022

✏️ Updated: 31/07/2022

Author: Dante Mogrim


Basics

$ git config user.name
# Output: Dante Mogrim

$ git config user.email
# Output: mogrimdante@gmail.com

# Set nano as your default code editor.
$ git config --global core.editor "nano"

# Outputs the whole .gitconfig file.
$ git config --list

Change your e-mail in Git:

$ git config --global user.email <your-new-email-here>