Open utterances-bot opened 1 year ago
Beautifully explained! Thanks :-) I have a question, Is it also possible to have a pattern match sort of a flow when deciding .gitconfig? For example say
~/dev/personal
Within work say there are differences something like
~/dev/work/client1
(This uses say client1email@example.com )~/dev/work/client2
(This uses say client2email@example.com )
Conditional Git configuration - Jiayu's Blog
The situation Have you ever created a new Git repository for work on a personal machine or vice-versa, and accidentally made your first commit with the global Git email? Something like: $ git config --global user.email my@personal.email $ git init Initialized empty Git repository in /Users/yijiayu/work/project/.
https://blog.jiayu.co/2019/02/conditional-git-configuration/