9.12.2020 |

Configure Author and Email for your Git Commits

$ git config --global user.name "FIRST_NAME LAST_NAME"
$ git config --global user.email "MY_NAME@newcubator.com"

Why --global

Order where Git searches for configuration:

  1. Project specific .git/config
  2. User specific $HOME/.gitconfig
  3. System wide /usr/local/etc/gitconfig (On Mac)


If you want to get fancy and automate the email and other configurations based on the location of the project directory, you can use Conditional Includes.

Zur Übersicht

Mehr vom DevSquad...

Jan Sauer

Git main replaces master

Kerstin Paduch

UX Design nach psychologischen Regeln