git: override user.email in dotfiles repository

This commit is contained in:
Fernando Schauenburg 2022-02-01 18:04:16 +01:00
parent 8a8efe5f62
commit 7c3f01a88e
2 changed files with 9 additions and 0 deletions

View file

@ -78,3 +78,8 @@
path = ~/.local/etc/git/config.user # user name & e-mail (from template) path = ~/.local/etc/git/config.user # user name & e-mail (from template)
path = ~/.local/etc/git/config # optional manual configurations path = ~/.local/etc/git/config # optional manual configurations
# Overrides for my dotfiles directory to make sure I never commit with the
# wrong e-mail address.
[includeIf "gitdir:~/.dotfiles/"]
path = ~/.config/git/dotfiles

4
git/.config/git/dotfiles Normal file
View file

@ -0,0 +1,4 @@
[user]
name = Fernando Schauenburg
email = fernando@schauenburg.me