Smartly Managing Different Git Profiles
1 Introduction
While fixing the author and email properties for a bunch of existing commits on different repositories, I realised I often forget configuring the good information for both my professional & personal GIT repositories. I particularly skip to specify the good email address of the good GPG signature after checking them out.
I therefore looked around for an industrialised (~lazy) solution for fixing this issue once for all.
I found a solution which fits my needs: the includeIf
instruction.
Among other things, this functionality helps me centralise my Git configuration and apply the good parameters/instructions (e.g., user.email
) dynamically in every repository.