How to use different git emails for personal and work repositories on the same machine
→
https://blog.hao.dev/how-to-use-different-git-emails-for-personal-and-work-repositories-on-the-same-machine
Option 1 : avoir deux fichiers .gitconfig-work et .gitconfig-perso, et dans le fichier .gitconfig charger le bon fichier selon le répertoire.
> # ~/.gitconfig
>
> [includeIf "gitdir:~/work/"]
> path = .gitconfig-work
> [includeIf "gitdir:~/personal/"]
> path = .gitconfig-personal
Option 2 : modifier dans chaque dépôt l’adresse e-mail Git.
Wed Jun 1 10:30:30 2022
–
#permalink