17.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"
--global
Why Order where Git searches for configuration:
- Project specific
.git/config
- User specific
$HOME/.gitconfig
- System wide
/usr/local/etc/gitconfig
(On Mac)
Bonus
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.
Standort Hannover
newcubator GmbH
Bödekerstraße 22
30161 Hannover
Standort Dortmund
newcubator GmbH
Westenhellweg 85-89
44137 Dortmund